Plotting RoCoF using PSSPLT (version 35) and export results to excel using Python API
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)
- Is there anything wrong in creating the .out files?
- 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.