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.
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
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | tim | Simulation time | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | on | Relay switch signal | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | trigger | Reset the output when trigger becomes true | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | tOff | Length for the off period | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | tOn | Length for the on period |
Revisions
-
June 1, 2022, by Sen Huang:
First implementation.