blockBooleanDelay

Zero order hold for boolean variable

Extends from Modelica.Blocks.Interfaces.BooleanSISO (Single Input Single Output control block with signals of type Boolean), Modelica.Blocks.Interfaces.DiscreteBlock (Base class of discrete control blocks).

Information

Block that delays the boolean input signal by one sampling interval. For example, if u denotes the input, y denotes the output, and ti and ti+1 denote subsequent sampling instants, then the model outputs

y(ti+1) = u(ti).

Parameters

TypeNameDefaultDescription
SI.TimesamplePeriod (from DiscreteBlock)Sample period of component
SI.TimestartTime (from DiscreteBlock)0First sample time instant
Initialization
BooleanfirstTrigger_startfalseStart value for rising edge signals first sample instant

Connectors

TypeNameDefaultDescription
BooleanInputu (from BooleanSISO)Connector of Boolean input signal
BooleanOutputy (from BooleanSISO)Connector of Boolean output signal

Revisions

  • June 6, 2015, by Michael Wetter:
    Set start value and fixed attribute for firstTrigger to avoid a translation warning in pedantic mode in Dymola 2016. This is for #266.
  • November 21, 2011, by Michael Wetter:
    Improved documentation.
  • November 26, 2008, by Michael Wetter:
    First implementation.