PID Tuner
Tune PID controllers
Description
The PID Tuner app automatically tunes the gains of a PID controller for a SISO plant to achieve a balance between performance and robustness. You can specify the controller type, such as PI, PID with derivative filter, or two-degree-of-freedom (2-DOF) PID controllers. Analysis plots let you examine controller performance in time and frequency domains. You can interactively refine the performance of the controller to adjust loop bandwidth and phase margin, or to favor setpoint tracking or disturbance rejection.
You can use PID Tuner with a plant represented by a numeric LTI model such
as a transfer function (tf) or state-space
(ss) model. If you have Simulink®
Control Design™ software, you can use PID Tuner to tune a PID
Controller or PID Controller (2DOF) block in a Simulink model. If you have System Identification Toolbox™ software, you can use the app to estimate a plant from measured or
simulated data and design a controller for the estimated plant.
Interactive Tuning in the Live Editor
For interactive PID tuning in the Live Editor, see the Tune PID Controller Live Editor task. This task lets you interactively design a PID controller and automatically generates MATLAB® code for your live script.
Open the PID Tuner App
MATLAB Toolstrip: On the Apps tab, under Control System Design and Analysis, click the app icon.
MATLAB command prompt: Enter
pidTuner.Simulink model: In the PID Controller or PID Controller (2DOF) block dialog box, click Tune.
Examples
- Tune PID Controller to Favor Reference Tracking or Disturbance Rejection (PID Tuner)
- PID Controller Tuning in Simulink (Simulink Control Design)
- Designing PID Controllers with PID Tuner
- Introduction to Model-Based PID Tuning in Simulink (Simulink Control Design)
Parameters
Programmatic Use
Tips
For PID tuning at the command line, use
pidtune. Thepidtunecommand can design a controller for multiple plants at once.For interactive PID tuning in the Live Editor, see the Tune PID Controller Live Editor task. This task lets you interactively design a PID controller and automatically generates MATLAB code for your live script.
Version History
Introduced in R2010b

