FixedRising model

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

Icon of FixedRising

Example for FixedRising (in every true condition phase, a defined number of check rising edges must occur)

Extends Modelica.Icons.Example

Using check block FixedRising 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 has two rising edges in the first phase (1.1 and 1.3 s), four in the second (3.1, 3.2, 3.3 and 3.4 s) and five in the third (4.1, 4.3, 4.5, 4.7 and 4.9 s). fixedRising1 requires exactly nRising = 4 rising edges per phase, which only the second phase has; fixedRising2 requires exactly 0 rising edges, which none of the phases has.

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
fixedRising1Requirements.ChecksInFixedWindow.FixedRisingExactly 4 rising edges of check per condition phase
fixedRising2Requirements.ChecksInFixedWindow.FixedRisingExactly 0 rising edges of check per condition phase