First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Check the post "Python 3.7 w/ PSSE 34" for additional info. The 'auto' loading of a python script might not work with multiple python version, multiple PSSe versions on same machine.
Save the following as test34.py code:
import os, sys
PSSPY27PATH = r"C:\Program Files (x86)\PTI\PSSE34\PSSPY27"
sys.path.append(PSSPY27PATH) #path to psspy for python 2.7
# import psse34 #it replaces the above two lines
import psspy
import redirect
redirect.psse2py()
psspy.psseinit(150000)
import dyntools
import csv, re
Now, open explicitly the command prompt window (DOS window) provided with the installation of PSSe v 34, change directory to your working folder
c:\..>cd c:\...\wfolder
and type:
c:\..\wfolder>c:\python27\python test34.py