modelPIDWithInputGains

Test model for PIDWithInputGains

Information

Validation test for the block AixLib.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. AixLib.Controls.OBC.CDL.Reals.PIDWithReset.

Components

TypeNameDefaultDescription
AixLib.Controls.OBC.CDL.Reals.Sources.PulsepulseSetpoint
AixLib.Controls.OBC.CDL.Reals.Sources.ConstantconstMeasured value
AixLib.Controls.OBC.Utilities.PIDWithInputGainsPIDWitInpGaiPID controller with input gains
AixLib.Controls.OBC.CDL.Reals.PIDWithResetPIDPID controller with constant gains
AixLib.Controls.OBC.CDL.Logical.Sources.PulseresSigReset signal
AixLib.Controls.OBC.CDL.Reals.Sources.PulsekControl gain signal
AixLib.Controls.OBC.CDL.Reals.Sources.PulseTiTime constant signal for the integral term
AixLib.Controls.OBC.CDL.Reals.Sources.PulseTdTime constant signal for the derivative term
AixLib.Controls.OBC.CDL.Reals.Absabs1Absolute value of controller output
AixLib.Controls.OBC.CDL.Reals.SubtractsubDifference in controller output
AixLib.Controls.OBC.CDL.Reals.LessThresholdlesThrOutput true if outputs are bigger than threshold
AixLib.Controls.OBC.CDL.Utilities.AssertassMesMake sure outputs are within expected tolerance
AixLib.Controls.OBC.CDL.Reals.Sources.CivilTimemodTimCivil time
AixLib.Controls.OBC.CDL.Reals.GreaterThresholdgreThrOutput true if model time is below 0.6
AixLib.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.