modelPIDWithInputGains

Test model for PIDWithInputGains

Information

Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithInputGains.

For t ∈ [0, 0.6] both PID controllers have the same gains. During this time, they generate the same output. Afterwards, the gains, and hence also their outputs, differ. Buildings.Controls.OBC.CDL.Reals.PIDWithReset.

Components

TypeNameDefaultDescription
Buildings.Controls.OBC.CDL.Reals.Sources.PulsepulseSetpoint
Buildings.Controls.OBC.CDL.Reals.Sources.ConstantconstMeasured value
Buildings.Controls.OBC.Utilities.PIDWithInputGainsPIDWitInpGaiPID controller with input gains
Buildings.Controls.OBC.CDL.Reals.PIDWithResetPIDPID controller with constant gains
Buildings.Controls.OBC.CDL.Logical.Sources.PulseresSigReset signal
Buildings.Controls.OBC.CDL.Reals.Sources.PulsekControl gain signal
Buildings.Controls.OBC.CDL.Reals.Sources.PulseTiTime constant signal for the integral term
Buildings.Controls.OBC.CDL.Reals.Sources.PulseTdTime constant signal for the derivative term
Buildings.Controls.OBC.CDL.Reals.Absabs1Absolute value of controller output
Buildings.Controls.OBC.CDL.Reals.SubtractsubDifference in controller output
Buildings.Controls.OBC.CDL.Reals.LessThresholdlesThrOutput true if outputs are bigger than threshold
Buildings.Controls.OBC.CDL.Utilities.AssertassMesMake sure outputs are within expected tolerance
Buildings.Controls.OBC.CDL.Reals.Sources.CivilTimemodTimCivil time
Buildings.Controls.OBC.CDL.Reals.GreaterThresholdgreThrOutput true if model time is below 0.6
Buildings.Controls.OBC.CDL.Logical.Oror2Output true either if time is bigger than 0.59, or if tolerance is maintained

Revisions

  • May 17, 2022, by Sen Huang:
    First implementation.