Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Jan 12 '5

trapezoid gravatar image

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()