NoRising model
Requirements.Examples.Elementary.ChecksInFixedWindow.NoRising
ยท source
Example for NoRising (in every true condition phase, no rising edge of check is allowed)
Extends Modelica.Icons.Example
Using check block NoRising as
results in
![]() | |
| simulation result |
The condition phases are [1, 2), [3, 3.5) and from 4 s to the stop time of 5 s. The signal check starts
true and toggles at the table times, so it has rising edges at 0.3, 1.1, 1.3, 2.2, 2.8 and 3.6 s. Counted
within the condition phases, there are two rising edges in [1, 2) (at 1.1 and 1.3 s), none in [3, 3.5) (check rose at
2.8 s, before the phase started) and none from 4 s on, so noRising1 is expected to be Violated only in the
first phase.
Components and variables
| Name | Type | Description |
|---|---|---|
condition | Modelica.Blocks.Sources.BooleanTable | Condition phases [1,2), [3,3.5) and from 4 s on |
check | Modelica.Blocks.Sources.BooleanTable | Signal whose rising edges are counted |
noRising1 | Requirements.ChecksInFixedWindow.NoRising | No rising edge of check is allowed in a condition phase |

