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
| Type | Name | Default | Description |
|---|---|---|---|
| AixLib.Controls.OBC.CDL.Reals.Sources.Pulse | pulse | Setpoint | |
| AixLib.Controls.OBC.CDL.Reals.Sources.Constant | const | Measured value | |
| AixLib.Controls.OBC.Utilities.PIDWithInputGains | PIDWitInpGai | PID controller with input gains | |
| AixLib.Controls.OBC.CDL.Reals.PIDWithReset | PID | PID controller with constant gains | |
| AixLib.Controls.OBC.CDL.Logical.Sources.Pulse | resSig | Reset signal | |
| AixLib.Controls.OBC.CDL.Reals.Sources.Pulse | k | Control gain signal | |
| AixLib.Controls.OBC.CDL.Reals.Sources.Pulse | Ti | Time constant signal for the integral term | |
| AixLib.Controls.OBC.CDL.Reals.Sources.Pulse | Td | Time constant signal for the derivative term | |
| AixLib.Controls.OBC.CDL.Reals.Abs | abs1 | Absolute value of controller output | |
| AixLib.Controls.OBC.CDL.Reals.Subtract | sub | Difference in controller output | |
| AixLib.Controls.OBC.CDL.Reals.LessThreshold | lesThr | Output true if outputs are bigger than threshold | |
| AixLib.Controls.OBC.CDL.Utilities.Assert | assMes | Make sure outputs are within expected tolerance | |
| AixLib.Controls.OBC.CDL.Reals.Sources.CivilTime | modTim | Civil time | |
| AixLib.Controls.OBC.CDL.Reals.GreaterThreshold | greThr | Output true if model time is below 0.6 | |
| AixLib.Controls.OBC.CDL.Logical.Or | or2 | Output true either if time is bigger than 0.59, or if tolerance is maintained |
Revisions
-
May 17, 2022, by Sen Huang:
First implementation.