Stair Generator
Generate signal changing at specified transition times
Library
Simscape / Electrical / Specialized Power Systems / Sources / Signal Generator Sources
Description
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.
Parameters
- Time (s)
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]
.- Amplitude
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
0
until the simulation reaches the first transition time. Default is[1, -1, 2.5, 0]
.- Sample time
Specify the sample time of the block, in seconds. Set to
0
to implement a continuous block. Default is0
.
Characteristics
Sample Time | Specified in the Sample Time parameter Continuous if Sample Time = 0 |
Scalar Expansion | No |
Dimensionalized | No |
Zero-Crossing Detection | No |
Examples
The power_SignalGenerators
example
shows the use of the Stair Generator block.
Version History
Introduced in R2013a