MinAccumulatedDuration2 model
Requirements.Examples.Elementary.ChecksInSlidingWindow.MinAccumulatedDuration2
ยท source
Example for MinAccumulatedDuration2 (in every sliding time window, the accumulated time duration where check was true must be above a lower limit)
Extends Modelica.Icons.Example
Using sliding time window check block MinAccumulatedDuration2 as
results in
![]() | |
| simulation result |
The same test as MinAccumulatedDuration (check true on [1, 3.3), [5.2, 5.4), [5.6, 5.8), [6, 8), [9.1, 10.5) and [11.5, 12) s, window 2 s, lower limit 1 s), but with the block MinAccumulatedDuration2, whose output is a Boolean instead of a Property. The two examples can be compared to see how the verdicts map to the two output types.
Revisions
| Date | Description |
|---|---|
| Dec. 3, 2026 | Documentation: the first paragraph names and links the block used, MinAccumulatedDuration2, instead of MinAccumulatedDuration (H. Tummescheit, Model Based Innovation LLC) |
Components and variables
| Name | Type | Description |
|---|---|---|
check | Modelica.Blocks.Sources.BooleanTable | Signal whose true phases are monitored |
minAccDuration | Requirements.ChecksInSlidingWindow.MinAccumulatedDuration2 | In every 2 s window, check must be true for at least 1 s in total (Boolean output) |

