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

Ask Your Question
0

PSSPLT in python

asked Oct 11 '16

Power_System_Engineer gravatar image

Is there a way to call up the PSSPLT module using python script? If so, what is the basic command for it? I know in cmd line, you can invoke the pssplt by using this command - call pssplt -gnikool off. I am looking for something similar using python either in the PSSE module or python IDLE.

Thank you!

1 answer

Sort by » oldest newest most voted
0

answered Oct 11 '16

perolofl gravatar image

updated Oct 12 '16

You can run PSSPLT with a response file from Python in the following way:

import os 
pssbindir  = r"C:\Program Files (x86)\PTI\PSSE33\PSSBIN"
os.environ['PATH'] = pssbindir + ';' + os.environ['PATH']
os.system("pssplt -inpdev test.idv")

The response file may first be written by your script before calling upon PSSPLT.

Edit: Remember to have STOP at the last line in the response file so PSSPLT GUI will be closed after execution.

link

Comments

thank you!!!!!

Power_System_Engineer gravatar imagePower_System_Engineer (Oct 11 '16)

The small script above worked great alone but when I embed it within my stability run script at the end, it is complaining that it can't locate the idv file. Any suggestions?

Power_System_Engineer gravatar imagePower_System_Engineer (Oct 12 '16)

Does the script change the working directory?

perolofl gravatar imageperolofl (Oct 12 '16)

The stability script does change the work directory under variable work_dir. So whatever the user has for the work_dir variable as is the working directory.

Power_System_Engineer gravatar imagePower_System_Engineer (Oct 12 '16)

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: Oct 11 '16

Seen: 2,132 times

Last updated: Oct 12 '16