Plotting RoCoF using PSSPLT (version 35) and export results to excel using Python API

asked 2022-01-27 11:21:44 -0500

Satyaki Banik gravatar image

Hello, I have been using the following lines of code to generate the .out and excel files after a dynamic simulation:

psspy.set_chnfil_type(0) # generate .out file (0), not .outx (1)
psspy.change_channel_out_file(outFile)
# run dynamic simulation
psspy.strt_2([0,1],outFile)
*dynamic simuation here*

import dyntools
chnfobj=dyntools.CHNF(outFile)
chnfobj.xlsout(channels=[],show= False)

Now when I open PSSPLT, select CHNF and select a .out file, there is an error that says Invalid file type <file_path> (RWFIL)

  1. Is there anything wrong in creating the .out files?
  2. Is there any way I could write a piece of code to plot rate of change of frequency (function #17: "time derivative") using PSSPLT and export it to an excel file? I saw the API documentation, but cannot figure it out.

Thank you.

edit retag flag offensive close merge delete