BandAccumulatedDuration model
Requirements.Examples.Elementary.ChecksInSlidingWindow.BandAccumulatedDuration
ยท source
Example for BandAccumulatedDuration (in every sliding time window, the accumulated time duration where check was true must be within a given band)
Extends Modelica.Icons.Example
Using sliding time window check block BandAccumulatedDuration as
results in
![]() | |
| simulation result |
The signal check is true on [1, 3.5), [5.2, 5.4), [5.6, 5.8), [6, 8.5), [9.1, 10.5) and [11.5, 12) s.
bandAccDuration uses a sliding time window of window = 3 s and requires that, within every
window, check was true for at least lowerLimit = 1 s and at most upperLimit = 2 s in total.
In contrast to BandDuration,
the durations of all true phases in a window are added up.
Components and variables
| Name | Type | Description |
|---|---|---|
check | Modelica.Blocks.Sources.BooleanTable | Signal whose true phases are monitored |
bandAccDuration | Requirements.ChecksInSlidingWindow.BandAccumulatedDuration | In every 3 s window, check must be true for between 1 s and 2 s in total |

