First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Problem when Compiling and generating dynamic library files

asked Jul 14 '0

Wendy gravatar image

updated Jul 14 '0

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.

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 (Jul 15 '0)

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 (Jul 16 '0)

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 (Jul 16 '0)

1 answer

Sort by » oldest newest most voted
0

answered Jul 17 '0

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

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Jul 14 '0

Seen: 1,603 times

Last updated: Jul 17 '20