Ask Your Question
0

This is my first time conecting python with psseuniversity

asked 2014-05-02 15:03:59 -0500

Luis gravatar image

After importing psspy module, I just want to open a saved case, on a file named "rede.sav".

The code is:

ierr = psspy.case("rede.sav")

and I got the msg "Messages for api CASE PSS(R)E not properly initialized (004288)"

with error code 4 which means "prerequisite requirements for API are not met"

What am I doing wrong?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-05-05 23:09:55 -0500

Eli Pack gravatar image

Before you can open the case file, you'll need to add PSSE to your path and initialize it. You'll want to check the PSSBIN location in the code below (depending on your PSSE version and install location). I've given you a basic solve in the last line of code.

import os,sys

PSSE_LOCATION = r"C:\Program Files\PTI\PSSE32\PSSBIN"
sys.path.append(PSSE_LOCATION)
os.environ['PATH'] = os.environ['PATH'] + ';' +  PSSE_LOCATION 

import psspy

CASE = r"rede.sav"

psspy.psseinit(2000)
psspy.case(CASE)
psspy.fnsl()
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

Stats

Asked: 2014-05-02 15:03:59 -0500

Seen: 860 times

Last updated: May 05 '14