Do you have an example about the event DSL function?
Category:
Dynamic Simulation
Answer
In the attached example a counter is implemented in DSL using the event function. This function creates in this case a parameter event over the same DSL model every time the input signal changes sign from negative to positive.
The syntax of the event function is: event(maxtrig, input, 'name=this dtime=0.0 value=val variable=counter')
the variable named "counter" will be set to value "cadd" within a dtime of 0.0 seconds. For more information refer to the User Manual section DSL Special Functions.
Tags