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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanInput | u | Boolean input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y | Real output signal = duration of input signal u being true |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Logical.Timer | timer |
