![]() | 1 | initial version |
Sorry for the delay. I had to narrow the code down.
This code does not work in PSSE35. It crashes in the second loop.
import sys
sys.path.insert(0,"C:/Program Files/PTI/PSSE35/35.6/PSSPY37")
sys.path.insert(0,"C:/Program Files/PTI/PSSE35/35.6/PSSBIN")
case_file = "IEEE 39 bus.RAW"
dyr_file = "IEEE 39 bus.dyr"
for i in range(2):
import psse35
import psspy
psspy.psseinit(150_000)
ierr = psspy.read(0, case_file)
ierr = psspy.dyre_new([1, 1, 1, 1], dyr_file, "", "", "")
psspy.pssehalt_2()