Validation test for the block Buildings.Controls.OBC.Utilities.PIDWithAutotuning.FirstOrderAMIGO.
This example compares the output of an autotuning PID controller (PIDWitTun
)
to that of a normal PID controller (PID
) with prescribed gains.
Both PID controllers are connected with a first-order control process. At the beginning (0s-500s), the outputs from those two PID controllers are identical as their prescribed gains are the same.
Once the autotuning starts at 500s, the outputs of the two PID controllers
become different.
After the tuning completes, under the control of PIDWitTun
, the value
of the controlled variable
is close to the setpoint after the tuning period ends (PIDWitTun.resPro.triEnd = true
).
On the contrary, PID
has a poor control performance,
i.e., the value of the controlled variable oscillates.
The example also shows that the autotunning process can be re-triggered
when the input triTun
becomes true
.