Contents

Open the PID Tuner

Prerequisites for PID Tuning

Before you can use the PID Tuner, you must:

  • Create a Simulink® model containing a PID Controller or PID Controller (2DOF) block. Your model can have one or more PID blocks, but you can only tune one PID block at a time.

    Your plant (all blocks in the control loop other than the controller) can be linear or nonlinear. The plant can also be of any order, and have any time delays.

  • Configure the PID block settings, such as controller type, controller form, time domain, sample time. See the PID Controller or PID Controller (2DOF) block reference pages for more information about configuring these settings.

Opening the Tuner

To open the PID Tuner and view the initial compensator design:

  1. Open the Simulink model by typing the model name at the MATLAB® command prompt.

  2. Double-click the PID Controller block to open the block dialog box.

  3. In the block dialog box, click Tune to launch the PID Tuner.

When you open the PID Tuner, the following actions occur:

  • The PID Tuner automatically linearizes the plant at the operating point specified by the model initial conditions, as described in What Plant Does the PID Tuner See?. If you want to design a controller for a different operating point, see Tune at a Different Operating Point.

  • The PID Tuner computes an initial compensator design for the linearized plant model using the algorithm described in PID Tuning Algorithm.

  • The PID Tuner displays the closed-loop step reference tracking response for the initial compensator design in the PID Tuner dialog box. For comparison, the display also includes the closed-loop response for the gains specified in the PID Controller block, if that closed loop is stable, as shown in the following figure.

    Tip   After the tuner opens, you can close the PID Controller block dialog box.

Was this topic helpful?