blockHalfPeriodRatio
Calculate the half period ratio of a response of a relay controller
Information
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.
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 | tOn | Length for the on period | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | tOff | Length for the off period | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | TunEnd | True: the tuning process ends | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | rho | Real signal of the half period ratio |
Revisions
-
June 1, 2022, by Sen Huang:
First implementation.