TimeMonitoring model

Requirements.Examples.Elementary.SignalAnalysis.TimeMonitoring  ยท source

Icon of TimeMonitoring

Example for TimeMonitoring (output is the time duration where the Boolean input was true)

Extends Modelica.Icons.Example

Using signal analysis block TimeMonitoring as

results in

simulation result

The Boolean input of TimeMonitoring is true on [1, 2), [3.5, 5) and [6, 6.5) s. The output is the time duration for which the input has been true: it rises with slope 1 during every true phase, reaching 1 s, 1.5 s and 0.5 s at the ends of the three phases, and is zero while the input is false. Such an output can be compared with a limit to formulate duration requirements.

Components and variables

NameTypeDescription
booleanTableModelica.Blocks.Sources.BooleanTableBoolean signal true on [1,2), [3.5,5) and [6,6.5) s
timeMon1Requirements.SignalAnalysis.TimeMonitoringTime for which booleanTable has been true in its current true phase