Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation
Collection of validation models
Information
This package contains models that validate the blocks in Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.
Package Content
Name | Description |
---|---|
![]() |
Test model for calculating the half period ratio |
![]() |
Test model for calculating the normalized time delay |
![]() |
Test model for calculating the length of the on period and the off period |
![]() |
Test model for a sampler with a reset and a threshold |
![]() |
Test model for the tuning period management |
Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.HalfPeriodRatio
Test model for calculating the half period ratio
Information
Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.HalfPeriodRatio.
This testing scenario in this example is the same as that in Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TunMonitor. The lengths of the on period and the off period are sampled at 0.9s to calculate the half period ratio.
Modelica definition
Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.NormalizedTimeDelay
Test model for calculating the normalized time delay
Information
Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.NormalizedTimeDelay.
The input rho
is a step signal that changes from 2 to 1 at 0.7s.
Modelica definition
Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.OnOffPeriod
Test model for calculating the length of the on period and the off period
Information
Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.OnOffPeriod.
This example considers a relay switch output from a relay controller,relSwi
.
-
At 0.06s,
relSwi
changes from On to Off. -
At 0.7s,
relSwi
changes into On. -
At 0.86s,
relSwi
changes into Off.
Modelica definition
Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.SamplerWithResetThreshold
Test model for a sampler with a reset and a threshold
Information
Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.SamplerWithResetThreshold.
This example considers a real input,u
, and a boolean input, resSig
-
At 0.5s,
u
changes from 0 to 1, triggering the sampling; -
At 0.9s,
resSig
changes into On, triggering the reset.
Modelica definition
Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.Validation.TuningMonitor
Test model for the tuning period management
Information
Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.BaseClasses.TuningMonitor.
- At 0.1s, the length of the on period becomes 0.1s, triggering the tuning period to start.
- At 0.7s, the length of the off period becomes 0.5s.
- At 0.9s, the length of the on period changes from 0.1s to 0.9s while that of the off period remains 0.5s. This triggers the tuning period to end.