BandRising model
Requirements.Examples.Elementary.ChecksInFixedWindow.BandRising
ยท source
Example for BandRising (in every true condition phase, a minimum number of check rising edges must occur and the number of check rising edges is bounded)
Extends Modelica.Icons.Example
Using check block BandRising 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 none in the third.
bandRising requires between nRisingMin = 2 and nRisingMax = 3 rising edges per
phase: the first phase lies within the band, the second has too many and the third too few edges.
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 |
bandRising | Requirements.ChecksInFixedWindow.BandRising | Between 2 and 3 rising edges of check per condition phase |

