You can use the Closed-Loop PID Autotuner block to tune PID controllers for:
- Any stable plant
- Any continuous-time plant with one or more integrators (poles at s = 0) or one or more
pairs of complex poles on the imaginary axis - Any discrete-time plant with one or more integrators (poles at z = –1) or pairs of
complex poles on the unit circle |z| = 1
If you do not have an initial PID controller, you can use the Open-Loop PID Autotuner
block to obtain one. You can then switch to closed-loop PID autotuning for refinement or
retuning.
The block supports code generation with Simulink Coder, Embedded Coder®, and
Simulink PLC Coder™. It does not support code generation with HDL Coder™.
For more information about using the Closed-Loop PID Autotuner block, see:
- “PID Autotuning for a Plant Modeled in Simulink” on page 8-9
- “PID Autotuning in Real Time” on page 8-17
For more general information about PID autotuning and a comparison of the closed-loop
and open-loop approaches, see “When to Use PID Autotuning” on page 8-2.
Ports
Input
u — Signal from controller
scalar
Insert the block into your system such that this port accepts a control signal from a
source. Typically, this port accepts the signal from the PID controller in your system.
Data Types: single | double
y — Plant output
scalar
Connect this port to the plant output.
Closed-Loop PID Autotuner