blockTriggeredTrapezoid

Triggered trapezoid generator

Extends from Modelica.Blocks.Icons.PartialBooleanBlock (Basic graphical layout of logical block).

Information

The block TriggeredTrapezoid has a Boolean input and a real output signal and requires the parameters amplitude, rising, falling and offset. The output signal y represents a trapezoidal signal dependent on the input signal u.

TriggeredTrapezoid.png

The behaviour is as follows: Assume the initial input to be false. In this case, the output will be offset. After a rising edge (i.e., the input changes from false to true), the output is rising during rising to the sum of offset and amplitude. In contrast, after a falling edge (i.e., the input changes from true to false), the output is falling during falling to a value of offset.

Note, that the case of edges before expiration of rising or falling is handled properly.

Parameters

TypeNameDefaultDescription
Realamplitude1Amplitude of trapezoid
SI.Timerising0Rising duration of trapezoid
SI.TimefallingrisingFalling duration of trapezoid
Realoffset0Offset of output signal

Connectors

TypeNameDefaultDescription
Blocks.Interfaces.BooleanInputuConnector of Boolean input signal
Blocks.Interfaces.RealOutputyConnector of Real output signal