blockTimerWithReset
Timer measuring the time from the time instant where the Boolean input became true
Information
This block is similar to
Buildings.Controls.OBC.CDL.Logical.Timer,
but introduces an additional Boolean input signal reset,
which resets the timer.
When reset becomes true:
y=0 and passed=false.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | t | 0 | Threshold time for comparison |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | u | Input that switches timer on if true, and off if false | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | reset | Reset signal | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | y | Elapsed time | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | passed | True if the elapsed time is greater than threshold |
Revisions
-
June 5, 2026, by Jianjun Hu:
First implementation.