Simulink Control Design™ - MathWorks

(Tuis.) #1

Open PID Tuner


Prerequisites for PID Tuning


Before you can use PID Tuner, you must:


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

    • If you are tuning a multi-loop control system with coupling between the loops,
      consider using other Simulink Control Design tools instead of PID Tuner. See
      Control System Designer and “Cascaded Multiloop Feedback Design” on page 9-
      64 for more information.

    • The PID Controller blocks support vector signals. However, using PID Tuner
      requires scalar signals at the block inputs. That is, the PID block must represent a
      single PID controller.




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 individual block reference pages for more information
    about configuring these settings:

    • PID Controller

    • Discrete PID Controller

    • PID Controller (2DOF)

    • Discrete PID Controller (2DOF)




Opening PID Tuner


To open PID Tuner and view the initial compensator design:

(^1) Open the Simulink model by typing the model name at the MATLAB command
prompt.
(^2) To open the block dialog box, double-click the PID controller block.
(^3) In the block dialog box, in the Select Tuning Method drop-down list, select
Transfer Function Based (PID Tuner App). To open PID Tuner, click Tune.
7 PID Controller Tuning

Free download pdf