Generate signal changing at specified transition times
Control and Measurements/Pulse & Signal Generators
The Stair Generator block generates a signal changing at specified transition times. Use the Stair Generator block to generate a logical signal to control the opening and closing of the Breaker block and the Ideal Switch block. You can also use the Stair Generator block to generate a signal whose amplitude changes by steps at specified transition times.
Specify the transition times, in seconds, when the output changes
to the values specified in the Amplitude parameter.
The output is kept to zero until the simulation reaches the first
transition time. Default is
[0, 1, 3, 3.5].
Specify the amplitude sequence of the output signal. The amplitude
is kept constant between the transition times specified in the Time
(s) parameter. The amplitude of the output is kept to
the simulation reaches the first transition time. Default is
-1, 2.5, 0].
Specify the sample time of the block, in seconds. Set to
implement a continuous block. Default is
|Sample Time||Specified in the Sample Time parameter|
Continuous if Sample Time = 0
shows the use of the Stair Generator block.