BandDuration model

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

Icon of BandDuration

Example for BandDuration (in every true condition phase, check must be true for at least a minimum duration and at most a maximum duration)

Extends Modelica.Icons.Example

Using check block BandDuration as

results in

simulation result

The condition and check signals are those of MinDuration: condition phases [1, 3), [5, 7), [9, 9.5) and [11, 13) s, check true on [0.5, 2.5), [5.2, 5.4), [5.6, 5.8), [6, 8), [9.1, 10.5) and [11.5, 12) s. bandDuration1 requires check to be true for at least durationMin = 0.9 s and at most durationMax = 1.3 s, so it combines the lower bound of MinDuration and the upper bound of MaxDuration in one property.

Components and variables

NameTypeDescription
conditionModelica.Blocks.Sources.BooleanTableCondition phases [1,3), [5,7), [9,9.5) and [11,13) s
checkModelica.Blocks.Sources.BooleanTableSignal whose true phases are checked against the duration band
bandDuration1Requirements.ChecksInFixedWindow.BandDurationIn every condition phase, check must be true for between 0.9 s and 1.3 s