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

TypeNameDefaultDescription
Realt0Threshold time for comparison

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputuInput that switches timer on if true, and off if false
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputresetReset signal
Buildings.Controls.OBC.CDL.Interfaces.RealOutputyElapsed time
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutputpassedTrue if the elapsed time is greater than threshold

Revisions

  • June 5, 2026, by Jianjun Hu:
    First implementation.