Ask Your Question
0

Problem when Compiling and generating dynamic library files

asked 2020-07-14 07:43:37 -0600

Wendy gravatar image

updated 2020-07-14 07:46:42 -0600

I have written model in conec.flx. Now I want to compile and get dynamic library files dsuse.dll. I put conec.flx in Root directory:PTI/ PSSE/EXAMPLE. And then I open PSS/E Command Prompt and type"compile". And the result is

Your PATH is now set to run PSS-34 programs! C:\Program Files (x86)\PTI\PSSE34\EXAMPLE>compile Traceback (most recent call last):
File "C:\Program Files (x86)\PTI\PSSE34\PSSBIN\cmdlusr.py", line 58, in <module>psseenvmanager.compile(major, cmpsources, modsources=modsources)
File "psseenvmanager.pyx", line 5727, in psseenvmanager.compile
File "psseenvmanager.pyx", line 5496, in psseenvmanager.compilelinkmain
File "psse
envmanager.pyx", line 3034, in psseenvmanager.initfindvscmp
File "psse
envmanager.pyx", line 1730, in psseenvmanager.getvsvrnssettings
File "psse
envmanager.pyx", line 2916, in psseenvmanager.writ_log
File "C:\Python27\lib\codecs.py", line 706, in write return self.writer.write(data)
File "C:\Python27\lib\codecs.py", line 369, in write data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 130: ordinal not in range(128)
If no errors, run "cload4"

I don't know how to deal with it.

edit retag flag offensive close merge delete

Comments

In the latest versions of PSS/E it is recommended not to write models in CONEC or CONET. https://psspy.org/psse-help-forum/question/5077/explanation-about-conec-and-conet-subroutines/

jfconroy gravatar imagejfconroy ( 2020-07-15 02:51:44 -0600 )edit

If the Output Bar shows" Compile models not supplied by PSS/E and create user dll", does it mean that I successfully build a model and add it in .dyr and I can use this model ?

Wendy gravatar imageWendy ( 2020-07-16 01:50:29 -0600 )edit

This message means that PSS/E has found a USRMDL in your DYR file and is reminding you that you need to link its DLL to PSS/E (Tools->Model Library->Load Model Library)

jfconroy gravatar imagejfconroy ( 2020-07-16 02:20:48 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2020-07-17 07:05:19 -0600

The reason is the codec issue in environment manager. Please use 8.1 to compile.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2020-07-14 07:43:37 -0600

Seen: 1,543 times

Last updated: Jul 17 '20