blockResponseProcess
Calculate the lengths of the on and off period, the half period ratio, and the times when the tuning starts and ends
Information
This block processes a relay switch output signal and calculates
- the length of the on period,
- the length of the off period,
- the normalized time delay of the responses, and
- the flags which indicate if the tuning starts and completes.
For more details, please refer to:
- Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.HalfPeriodRatio,
- Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.NormalizedTimeDelay,
- Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.OnOffPeriod.
- Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.TuningMonitor.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | yHig | Higher value for the output | |
| Real | yLow | Lower value for the output |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | on | Relay switch. True: tuning on perid, False: tuning off period | |
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | tim | Simulation time | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | trigger | Reset the output when trigger becomes true | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanInput | inTun | Check if a tuning is ongoing | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | tOn | Length of the on period | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | tOff | Length of the off period | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | triSta | True: the tuning starts | |
| Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput | triEnd | True: the tuning ends | |
| Buildings.Controls.OBC.CDL.Interfaces.RealOutput | tau | Normalized time delay |
Revisions
-
June 1, 2022, by Sen Huang:
First implementation.