blockTimeMonitoring

Output is the time duration where the Boolean input was true

Information

Syntax

duration = TimeMonitoring(u=...).y;

Description

Real output y is the duration in seconds, since the input u was true.

Example

This block is demonstrated with the following example:

results in

simulation result

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputuBoolean input signal
Modelica.Blocks.Interfaces.RealOutputyReal output signal = duration of input signal u being true

Components

TypeNameDefaultDescription
Modelica.Blocks.Logical.Timertimer