blockTrueDelay
Delay a rising edge of the input, but do not delay a falling edge
Information
Block that delays a signal when it becomes true.
A rising edge of the Boolean input u gives a delayed output.
A falling edge of the input is immediately given to the output. If
delayOnInit = true, then a true input signal
at the start time is also delayed, otherwise the input signal is
produced immediately at the output.
Simulation results of a typical example with a delay time of 0.1 second is shown below.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | delayTime | Delay time | |
| Boolean | delayOnInit | false | Set to true to delay initial true input |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | u | Input signal to be delayed when it switches to true | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | y | Output with delayed input signal after it switched to true |
Revisions
-
November 12, 2020, by Michael Wetter:
Reformulated to remove dependency toModelica.Units.SI.
This is for Buildings, issue 2243. -
February 11, 2019, by Milica Grahovac:
Added boolean input to enable delay of an initial true input. -
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.