First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
I need to do this using fortran using a simple user written model. I am aware of using DSRVAL or time variable which keeps updating during run. I need to find simulation time just before end of simulation and use that further.