NoRising block
Requirements.ChecksInFixedWindow.NoRising
ยท source
In every true condition phase, no rising edge of check is allowed
Extends Requirements.Interfaces.PartialCheck
Syntax
property = NoRising(condition=..., check=...).y;
Description
In every duration where the Boolean input condition is true, the Boolean input check must not have any rising edges. Property output y is initialized to Undefined (not applicable) if condition=false, and to Undecided if condition=true. When condition becomes true (so entering a duration), property output y = Undecided until either check has a rising edge in this duration, then y = Violated, or the condition becomes false without any rising edge of check, then y = Satisfied.
Violated, Undecided, and Satisfied are elements of enumeration Property.
Example
This block is demonstrated with the following example:
results in
![]() | |
| simulation result |
Margin
Output margin (present if computeMargin = true, the default) is the signed distance of the check
to its limit, -countRising with output countRising the number of rising edges of the phase so far, divided by parameter scale: margin ≥ 0 exactly when the check holds,
margin = 1 is one scale of headroom, margin < 0 a violation by that many. Set scale to the
requirement's tolerance so that margins of different requirements compare; with the default scale = 1 the margin
is the raw robustness in the quantity's unit. The block computes the instantaneous value only; the worst value
over a run and the instant it occurs are taken from the stored trajectory.
Components and variables
| Name | Type | Description |
|---|---|---|
countRising | Modelica.Blocks.Interfaces.IntegerOutput | Number of check rising edges in the current (or last) true condition phase |

