Simulink Control Design™ - MathWorks

(Tuis.) #1

Specify Controller Structure


Before tuning a PID Controller block using PID Tuner, you must first specify your
controller structure. To do so, double-click the PID Controller block. Then, specify the
following controller parameters:



  • Controller

  • Form

  • Time domain

  • Discrete-time settings

  • Other settings, such as the controller initial conditions, output saturation levels, and
    anti-windup configuration


For this example, use the current controller configuration; that is, a discrete-time parallel-
form PID controller without anti-windup.


Using the PID Tuner, you can tune the parameters of the following controller blocks:



  • PID Controller

  • PID Controller (2DOF)

  • Discrete PID Controller

  • Discrete PID Controller (2DOF)


If your model uses the Simscape Electrical Discrete PI Controller block or Discrete PI
Controller with Integral Anti-Windup block, you must replace this block with a PID
Controller block before tuning.


Tune Controller


To open the PID Tuner, click Tune. When PID Tuner first opens, it attempts to linearize
the model. Due to the PWM components, the model analytically linearizes to zero.


For this example, you tune the controller using the estimated frequency response data as
your plant model. To import the frequency response data, on the PID Tuner tab, click
Plant, and then, under Create a New Plant, click Import.


Design Controller for Power Electronics Model Using Frequency Response Data
Free download pdf