Documentation Center

  • Trial Software
  • Product Updates

Stair Generator

Generate signal changing at specified transition times

Library

Control and Measurements/Pulse & Signal Generators

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.

Dialog Box and 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.

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.

Sample time

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

Characteristics

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

Example

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

Was this topic helpful?