Generate signal changing at specified transition times
powerlib_extras/Control Blocks, powerlib_extras/Discrete Control Blocks
Note: The Pulse & Signal Generators section of the Control and Measurements library contains the Stair Generator block. This is an improved version of the Timer block. The new block features a mechanism that eliminates duplicate continuous and discrete versions of the same block by basing the block configuration on the simulation mode. If your legacy models contain the Timer block, they will continue to work. However, for best performance, use the Stair Generator block in your new models.
The Timer block generates a signal changing at specified transition times. Use this block to generate a logical signal (0 or 1 amplitudes) and control the opening and closing times of power switches like the Breaker block and the Ideal Switch block. You can also use this block to generate a signal whose amplitude changes by steps at specified transition times.
The transition times, in seconds, when the output of the block changes its value as defined by the Amplitude parameter. The Time(s) parameter must be a vector of the same length as the vector defined in the Amplitude parameter. The definition of the time 0 is optional. If a signal is not specified at time 0, the output is kept at zero until the first transition time specified in the Amplitude vector.
The vector of amplitudes of signal to be generated by the Timer block. The amplitude is kept constant between transition times defined in the Time(s) vector.
The output is a signal changing by steps at specified transition times.