modelLimPID

Test model for PID controller with optional reverse action

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This model tests the implementation of the PID controller with optional reverse action. The model limPIDOri is the original implementation of the controller from the Modelica Standard Library. The models limPID and limPIDRev are the implementations from the Buildings library. The model limPIDRev is parameterized to have reverse action. The assertion blocks test whether the results of all three controllers are identical.

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.Pulsepulse
Buildings.Controls.Continuous.LimPIDlimPID
Buildings.Controls.Continuous.LimPIDlimPIDRevController with reverse action
Modelica.Blocks.Sources.Constantconst
Modelica.Blocks.Math.Gaingain
Buildings.Utilities.Diagnostics.AssertEqualityassertEquality
Modelica.Blocks.Continuous.LimPIDlimPIDOri
Buildings.Utilities.Diagnostics.AssertEqualityassertEquality1

Revisions

  • April 26, 2016, by Michael Wetter:
    Relaxed tolerance of assertions from 1E-10 to 1E-3 as the default relative tolerance in JModelica is 1E-4. This is for Buildings, issue 510.
  • November 21, 2011, by Michael Wetter:
    Added documentation.