First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
The approach using a GREF channel is correct, but it can be done simpler. There is no need for RUN command since the channel is initialised at start of simulation. Use API chnval to get the channel value directly, i.e. the GREF value. There is no need to read it from the output file.
GREF_chan_number = 10
ierr, GREF = psspy,chnval(GREF_chan_number)