blockTriggeredMax

Output the maximum, absolute value of a continuous signal at trigger instants

Information

Block that outputs the input signal whenever the trigger input signal is rising (i.e., trigger changes to true). The maximum, absolute value of the input signal at the sampling point is provided as the output signal.

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputuInput signal to be sampled
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputtriggerInput for trigger that causes u to be sampled
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyMaximum of input signal over all trigger instants

Revisions

  • March 30, 2022, by Michael Wetter:
    Removed graphic from diagram view.
  • March 2, 2020, by Michael Wetter:
    Changed icon to display dynamically the output value.
  • September 14, 2017, by Michael Wetter:
    Removed parameter startTime and sampleTime as these are not needed for this block, and introduced parameter y_start=0.
    This is for Buildings, issue 938.
  • January 3, 2017, by Michael Wetter:
    First implementation, based on the implementation of the Modelica Standard Library.