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

Ask Your Question
0

UDM Compile by Environment Manager

asked May 2 '18

Rakibul Rakib gravatar image

updated May 4 '18

I am quite new to PSS/E Xplore 34 and want to use User Defined Model in dynamic simulation. I have found a .flx file written for an excitation system. I want to use it.

The procedure as I learned (please correct me if I am wrong):

  1. .flx or .for file need to be compiled to make a .dll file
  2. Load Model Library from PSS/E and use it

To make the .dll file in Environment manager(EM) I have specified the file in User Model Fortran Source Files and tried Compile and dll --> There are lots of errors ...

error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PBUFFR]
       USE DBUFFR
error #6423: This name has already been used as an external function name.   [STATE]
       STATE(K+1)=CON(J+3)
...

and many more like that...

I think there is an issue with any paths. But I couldn't fix it. Please help me to correct. Another thing is that I can't open EM form PSS/E GUI Create Model Library It shows-

AttributeError: 'Button' object has no attribute 'SetBitmap'

So, I opened it running the run_envmgr_py27 batch file in Python27 internal folder.

------------- PSS(R)E 34 Environment settings

 Fortran PATH paths (IVF 15.0.108):
    c:\program files (x86)\intel\composer xe 2015\bin\ia32
    c:\program files (x86)\intel\composer xe 2015\redist\ia32\compiler

 Visual Studio PATH paths (VS 2013):
    c:\program files (x86)\microsoft visual studio 12.0\vc\bin
    C:\Program Files (x86)\windows kits\8.1\bin\x86

 Fortran LIB paths (IVF 15.0.108):
    c:\program files (x86)\intel\composer xe 2015\compiler\lib\ia32

 Visual Studio LIB paths (VS 2013):
    c:\program files (x86)\microsoft visual studio 12.0\vc\lib
    C:\Program Files (x86)\windows kits\8.1\Lib\winv6.3\um\x86

 Successfully added PSSE paths to local PATH and LIB environment.

Please help me,

  • What's wrong with?

Thanks in advance.

2 answers

Sort by » oldest newest most voted
0

answered May 5 '18

Rakibul Rakib gravatar image

Well, after doing some research I solved this compilation issue.

So, it showed that "Check include paths"

Environment manager can be run either by running run_envmgr_py27 batch file or by python file example_psse34_ivf15_vs2013

There are some library files in PSSLIB10 folder of PSS/E installation and this folder is not included in the default environment manager.

So I add the folder path in the inlcude section of the python file. And, now it works through the python file.

link

Comments

Hi there, Can you please share exactly how you were able to add PSSLIB10 to the path? Thanks, Patrick

patrickrossiter gravatar imagepatrickrossiter (May 3 '19)

I have the same errors that you showed in the first question, I have tried to add the include paths on the python file example_psse34_ivf15_vs2013, but it does not work. I am using IVF 17 and VS 2015 with PSSE Xplore 34. Please, it would be helpful if you explain how did you do it

JosimarDTM gravatar imageJosimarDTM (Oct 21 '19)
0

answered May 2 '18

jconto gravatar image

updated May 3 '18

Check the posting "User Defined Model Development" and get a ready-to-run demo data set on that UEXC exciter. Also when running the "Environment Manager" (which needs Fortran & Visual Studio installs), check the second window (in the background) for the "Environment settings" information. In my pc, using full PSSe 34:

" PSS(R)E User Model Compile/Link - Environment Manager 8.0.1, Python 2.7.13 Thu May 03 12:22:21 2018

------------- PSS(R)E 34 Environment settings

Fortran PATH paths (IVF 12.1.325): c:\program files (x86)\intel\composer xe 2011 sp1\bin\ia32 c:\program files (x86)\intel\composer xe 2011 sp1\redist\ia32\compiler

Visual Studio PATH paths (VS 2012): c:\program files (x86)\microsoft visual studio 11.0\vc\bin C:\Program Files (x86)\windows kits\8.0\bin\x86 c:\program files (x86)\microsoft visual studio 11.0\common7\ide

Fortran LIB paths (IVF 12.1.325): c:\program files (x86)\intel\composer xe 2011 sp1\compiler\lib\ia32

Visual Studio LIB paths (VS 2012): c:\program files (x86)\microsoft visual studio 11.0\vc\lib C:\Program Files (x86)\windows kits\8.0\Lib\win8\um\x86

Successfully added PSSE paths to local PATH and LIB environment."

link

Comments

Thanks for replying... Actually, I have downloaded the files from your google drive and try to compile the uexc.flx using Environment manager ...but it is not working..so many errors as I mentioned... Can you please help me in this?

Rakibul Rakib gravatar imageRakibul Rakib (May 3 '18)

Updated my reply.

jconto gravatar imagejconto (May 3 '18)

Thanks for replying... I have appended My Environment Setting in the question. It seems okay, right? To compile "uexc.flx" is there any module source files needed? or just only I can compile "uexc.flx" ?

Rakibul Rakib gravatar imageRakibul Rakib (May 4 '18)

Just only "uexc.flx" and the one in my data set works. I know that Fortran v.15 + VS v.11 works with PSSev.33 but I have not tested if Fortran v.15 + VS v.13 works with PSS/E Xplore 34. Does anyone else have other 'combination' examples?

jconto gravatar imagejconto (May 4 '18)

okay...Thanks for the reply. I will then try more to get it done... will contact you later for further help. Can you please share your e-mail with me?

Rakibul Rakib gravatar imageRakibul Rakib (May 4 '18)

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

3 followers

Stats

Asked: May 2 '18

Seen: 2,212 times

Last updated: May 05 '18