blockTimerTotal

Timer measuring total time that the Boolean input is true

Extends from Modelica.Blocks.Icons.PartialBooleanBlock (Basic graphical layout of logical block).

Information

When the Boolean input "u" becomes true, the timer is started and the output "y" is the time from the time instant where u became true.

When the timer is stopped the output retains its value and then continues when "u" becomes true again.

This enables a measurement of the total time the input was true over the simulation.

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputuConnector of Boolean input signal
Modelica.Blocks.Interfaces.RealOutputyConnector of Real output signal