blockZeroOrderHold

Output the input signal with a zero order hold

Information

Block that outputs the sampled input signal at sample time instants. The output signal is held at the value of the last sample instant during the sample points. At initial time, the block feeds the input directly to the output.

Parameters

TypeNameDefaultDescription
RealsamplePeriodSample period of component

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputuInput signal to be sampled
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyZero order hold of the input signal

Revisions

  • November 12, 2020, by Michael Wetter:
    Reformulated to remove dependency to Modelica.Units.SI.
    This is for Buildings, issue 2243.
  • October 19, 2020, by Michael Wetter:
    Refactored implementation.
    This is for Buildings, issue 2170.
  • March 2, 2020, by Michael Wetter:
    Changed icon to display dynamically the output value.
  • September 14, 2017, by Michael Wetter:
    Removed parameter startTime to allow model to work also for negative start time without having to change the value of this parameters.
    This is for Buildings, issue 938.
  • January 3, 2017, by Michael Wetter:
    First implementation, based on the implementation of the Modelica Standard Library.