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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Time | samplePeriod (from DiscreteBlock) | Sample period of component | |
| SI.Time | startTime (from DiscreteBlock) | 0 | First sample time instant |
| Initialization | |||
| Boolean | firstTrigger_start | false | Start value for rising edge signals first sample instant |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| BooleanInput | u (from BooleanSISO) | Connector of Boolean input signal | |
| BooleanOutput | y (from BooleanSISO) | Connector of Boolean output signal |
Revisions
-
June 6, 2015, by Michael Wetter:
Set start value andfixedattribute forfirstTriggerto 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.