0

Problem when Compiling and generating dynamic library files

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.

Wendy's avatar
3
Wendy
asked 2020-07-14 07:43:37 -0500, updated 2020-07-14 07:46:42 -0500
edit flag offensive 0 remove flag 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's avatar jfconroy (2020-07-15 02:51:44 -0500) 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's avatar Wendy (2020-07-16 01:50:29 -0500) 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's avatar jfconroy (2020-07-16 02:20:48 -0500) edit
add a comment see more comments

1 Answer

0

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

Liang Xiao Peng's avatar
1
Liang Xiao Peng
answered 2020-07-17 07:05:19 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer