NoRising model

Requirements.Examples.Elementary.ChecksInFixedWindow.NoRising  ยท source

Icon of NoRising

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

NameTypeDescription
conditionModelica.Blocks.Sources.BooleanTableCondition phases [1,2), [3,3.5) and from 4 s on
checkModelica.Blocks.Sources.BooleanTableSignal whose rising edges are counted
noRising1Requirements.ChecksInFixedWindow.NoRisingNo rising edge of check is allowed in a condition phase