blockOnOffPeriod

Calculate the lengths of the on period and the off period

Information

This block processes a relay switch output and calculates the length of the on period, tOn, and the length of the off period, tOff, as shown below.

image

Note that tOn is sampled when the relay switch output becomes false. Likewise, tOff is sampled when the relay switch output becomes true.

References

J. Berner (2017). "Automatic Controller Tuning using Relay-based Model Identification." Department of Automatic Control, Lund University.

Connectors

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Interfaces.RealInputtimSimulation time
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputonRelay switch signal
Buildings.Controls.OBC.CDL.Interfaces.BooleanInputtriggerReset the output when trigger becomes true
Buildings.Controls.OBC.CDL.Interfaces.RealOutputtOffLength for the off period
Buildings.Controls.OBC.CDL.Interfaces.RealOutputtOnLength for the on period

Revisions

  • June 1, 2022, by Sen Huang:
    First implementation.