First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi, I would like to check first: You want to import dyntools in python, right? If so, you could add the following code in yours.
#import psse system
PSSE_LOCATION = r"C:\\Program Files (x86)\\PTI\\PSSE34\\PSSPY27"
sys.path.append(PSSE_LOCATION)
os.environ['PATH'] = os.environ['PATH'] + ';' + PSSE_LOCATION
import psse34
import psspihist, psspy, dyntools, redirect
_i = psspy.getdefaultint()
_f = psspy.getdefaultreal()
_s = psspy.getdefaultchar()
redirect.psse2py()
psspy.psseinit(100000000)
Also in case you need code to export out file to excel file, you could follow the code below and adjust to yours version. filename have to name as the same as your out file, and channels depend on which data you want to export, and also remind you that my code is export to csv file.
#convert out file to csv file, and choose all channels to export
output_obj = dyntools.CHNF(filename + '.out')
output_obj.csvout(channels=[1,2,3])