Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I believe you are changing the output file name during the dynamic simulation. I give an example below:

psspy.strt_2([0,1],r"""file2""")
psspy.run(0, 0.5,0,1,0)
psspy.dist_bus_fault(151,1,0.0,[0.0,-0.2E+10])
psspy.run(0, 0.6,0,1,0)
psspy.change_channel_out_file('file3')
psspy.dist_clear_fault(1)
psspy.run(0, 2.0,0,1,0)

Here, the API change_channel_out_file changes the name of the output file at t=0.6 s. The resulting plot of output file2.out is:

image description

I.e., file2.out only contains the results up to t=0.6 s.

File file3.out contains the simulation results from time t=0.6 and the plot is shown below:

image description

The output file name shall be defined at strt and not changed during the simulation. So, make sure API change_channel_out_file is not used in your code.