BandDuration model

Requirements.Examples.Elementary.ChecksInSlidingWindow.BandDuration  ยท source

Icon of BandDuration

Example for BandDuration (in every sliding time window, the longest time duration where check was permanently true must be within a given band)

Extends Modelica.Icons.Example

Using sliding time window check block BandDuration 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. bandDuration uses a sliding time window of window = 3 s and requires that, within every window, the longest phase in which check was permanently true lasts at least lowerLimit = 1 s and at most upperLimit = 2 s. The phases of 2.5 s length violate the upper limit, windows with only short phases the lower limit.

Components and variables

NameTypeDescription
checkModelica.Blocks.Sources.BooleanTableSignal whose true phases are monitored
bandDurationRequirements.ChecksInSlidingWindow.BandDurationIn every 3 s window, the longest true phase of check must last between 1 s and 2 s