DelayedRising block
Requirements.LogicalBlocks.DelayedRising
ยท source
Output y is true after a duration of a rising input edge and false after a falling input edge
Syntax
condition = DelayedRising(u=..., duration=...).y;
Description
Output y = true, after a rising edge of the input u and after u remains true for at least the defined duration . After a falling edge of u, y = false immediately.
y is computed as u and time >= startTime + duration, with startTime the instant of the last rising
edge of u. So y is never true while u is false. In particular, if u is true for exactly duration, y does not become
true: the duration runs out at the instant u falls. Before version 0.12.1, y was assigned in a when/elsewhen
chain, and when u fell at the instant the duration ran out, the result depended on the order in which the tool handled the
two events: in Modelon Impact y became true and stayed true until the next rising edge of u.
Example
This block is demonstrated with the following example:
results in
![]() | |
| simulation result |
Parameters
| Name | Type | Description |
|---|---|---|
duration parameter | SI.Time | Duration after rising edge of u |
Inputs
| Name | Type | Description |
|---|---|---|
u input | Boolean | Boolean input |
Components and variables
| Name | Type | Description |
|---|---|---|
y | Modelica.Blocks.Interfaces.BooleanOutput | = true, after rising edge of u for given duration |

