blockTriggeredTrapezoid

Triggered trapezoid generator

Extends from Modelica.Icons.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions).

Information

Block that represents a triggered trapezoid.

The block 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.

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.

TriggeredTrapezoid.png

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

Parameters

TypeNameDefaultDescription
RealamplitudeAmplitude of trapezoid
Realrising0Rising duration of trapezoid
RealfallingrisingFalling duration of trapezoid
Realoffset0Offset of output signal

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputuConnector of Boolean input signal
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyConnector of Real output signal

Revisions

  • December 11, 2023, by Jianjun Hu:
    Moved this model to the Obsolete package. This is for issue 3595.
  • November 12, 2020, by Michael Wetter:
    Reformulated to remove dependency to Modelica.Units.SI.
    This is for issue 2243.
  • January 3, 2017, by Michael Wetter:
    First implementation, based on the implementation of the Modelica Standard Library.