modelPIDScale

Test model for PID controller with scaling of the control error

Information

Validation test for the block AixLib.Controls.OBC.CDL.Reals.PID with and without setting of the parameter that scales the control error.

The test has two combinations of a PID controller and a plant. In PIDSca, the control error is scaled inside the controller, whereas in the configuration that has PIDNoSca, the setpoint signal and the measurement signal is scaled outside of the controller. Both controllers and plants have the same trajectory, thereby validating that the scaling is implemented correctly.

Components

TypeNameDefaultDescription
AixLib.Controls.OBC.CDL.Reals.Sources.PulsepulseSetpoint
AixLib.Controls.OBC.CDL.Reals.PIDpidScaPID controller with scaling of control input
AixLib.Controls.OBC.CDL.Reals.IntegratorWithResetpla1Plant model
Reals.Sources.ConstantresValReset value
Logical.Sources.ConstantresSigReset signal
AixLib.Controls.OBC.CDL.Reals.PIDpidNoScaPID controller without scaling of control input
AixLib.Controls.OBC.CDL.Reals.MultiplyByParametergaiGain to scale setpoint
AixLib.Controls.OBC.CDL.Reals.MultiplyByParametergai1Gain to scale measured value
AixLib.Controls.OBC.CDL.Reals.IntegratorWithResetpla2Plant model

Revisions