blockTriggeredSampler

Triggered sampling of continuous signals

Information

Samples the continuous input signal whenever the trigger input signal is rising (i.e., trigger changes from false to true) and provides the sampled input signal as output. Before the first sampling, the output signal is equal to the initial value defined via parameter y_start.

Parameters

TypeNameDefaultDescription
Realy_start0Initial value of 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.RealOutputyInput signal at the last trigger instant

Revisions

  • March 2, 2020, by Michael Wetter:
    Changed icon to display dynamically the output value.
  • May 18, 2017, by Michael Wetter:
    Corrected documentation.
  • May 17, 2017, by Milica Grahovac:
    First revision, based on the implementation of the Modelica Standard Library.
  • January 3, 2017, by Michael Wetter:
    First implementation, based on the implementation of the Modelica Standard Library.