First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Aug 27 '18

perolofl gravatar image

Use an extra loop to perform the simulation in steps of a delta time, e.g. 1 second step.

The simulation will then stop every second and you can check the channel value with psspy.chnval.

Terminate the loop with break if rotor angle exceeds the chosen limit.

click to hide/show revision 2
No.2 Revision

Use an extra loop to perform the simulation in steps of a delta time, e.g. 1 second step.

The simulation will then stop every second and you can check the channel value with psspy.chnval.

Terminate the loop with break if rotor angle exceeds the chosen limit.

Please note that chnval returns a tuple:

ierr, rval = chnval(n)