Storing variable value from current time step and use it in next time step in user defined model writing
I am writing an user defined model which takes one of the input as deltaP (change in P of synchronous generator). I have tried using DSTATE but is giving an error saying "this name does not have a type and must have an explicit type". Can anyone please help a step by step procedure how to achieve the above requirement it would a great help.