MinRising model
Requirements.Examples.Elementary.ChecksInSlidingWindow.MinRising
ยท source
Example for MinRising (in every sliding time window, a minimum number of check rising edges must occur)
Extends Modelica.Icons.Example
Using sliding time window check block MinRising as
results in
![]() | |
| simulation result |
The signal check is true on [1, 3.3), [5.2, 5.4), [5.6, 5.8), [6, 8), [9.1, 9.3), [9.5, 9.7),
[10, 10.5) and [11.5, 12) s, so it has rising edges at 1, 5.2, 5.6, 6, 9.1, 9.5, 10 and 11.5 s.
minRising requires at least nRisingMin = 1 rising edge in every sliding window of
window = 2 s; the gaps without an edge, e.g. between 1 s and 5.2 s, are longer than the window and are
reported by the property output.
Components and variables
| Name | Type | Description |
|---|---|---|
check | Modelica.Blocks.Sources.BooleanTable | Signal whose rising edges are counted |
minRising | Requirements.ChecksInSlidingWindow.MinRising | At least 1 rising edge of check in every 2 s window |

