This block calculates the half-period ratio of the output from a relay controller.
ρ = max(ton,toff)/ min(ton,toff),
where ton
and toff
are the
lengths of the on period and the off period, respectively.
An On period is defined as the period when the relay switch output of the relay controller is
true
.
Likewise, an Off period is defined as the period when the relay switch output is false
.
See details of the relay switch output in
Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Controller.
J. Berner (2017). "Automatic Controller Tuning using Relay-based Model Identification." Department of Automatic Control, Lund University.