BandRising model
Requirements.Examples.Elementary.ChecksInSlidingWindow.BandRising
ยท source
Example for BandRising (in every sliding time window, a minimum number of check rising edges must occur and the number of check rising edges is bounded)
Extends Modelica.Icons.Example
Using sliding time window check block BandRising as
results in
![]() | |
| simulation result |
The signal check has rising edges at 1, 5.2, 5.6, 6, 6.4, 9.1, 9.5, 10, 10.4 and 11.5 s.
bandRising requires between nRisingMin = 1 and nRisingMax = 3 rising edges in
every sliding window of window = 2 s. The long gap between 1 s and 5.2 s violates the lower limit, the
bursts of edges around 5 to 6.5 s and 9 to 10.5 s test the upper limit. The block thus combines
MinRising and
MaxRising.
Components and variables
| Name | Type | Description |
|---|---|---|
check | Modelica.Blocks.Sources.BooleanTable | Signal whose rising edges are counted |
bandRising | Requirements.ChecksInSlidingWindow.BandRising | Between 1 and 3 rising edges of check in every 2 s window |

