Main Content

Stair Generator

Generate signal changing at specified transition times

  • Stair Generator block

Libraries:
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.

Characteristics

Sample TimeSpecified in the Sample Time parameter
Continuous if Sample Time = 0
Scalar ExpansionNo
DimensionalizedNo
Zero-Crossing DetectionNo

Examples

The power_SignalGenerators example shows the use of the Stair Generator block.

Parameters

expand all

Transition times, in seconds, when the output changes to the values specified in the Amplitude parameter. The output is zero until the simulation reaches the first transition time.

Specify the amplitude sequence of the output signal. The amplitude is constant between the transition times specified in the Time (s) parameter. The amplitude of the output is 0 until the simulation reaches the first transition time.

Specify the sample time of the block, in seconds. Set to 0 to implement a continuous block.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2013a