Simulink Control Design™ - MathWorks

(Tuis.) #1

Design PID Controller Using Simulated I/O Data


This example shows how to tune a PID controller for plants that cannot be linearized. You
use PID Tuner to identify a plant for your model. Then tune the PID controller using the
identified plant.

This example uses a buck converter model that requires Simscape™ Electrical™ software.

Buck Converter Model

Buck converters convert DC to DC. This model uses a switching power supply to convert a
30V DC supply into a regulated DC supply. The converter is modeled using MOSFETs
rather than ideal switches to ensure that device on-resistances are correctly represented.
The converter response from reference voltage to measured voltage includes the
MOSFET switches. PID design requires a linear model of the system from the reference
voltage to the measured voltage. However, because of the switches, automated
linearization results in a zero system. In this example, using PID Tuner, you identify a
linear model of the system using simulation instead of linearization.

For more information on creating a buck converter model, see “Buck Converter”
(Simscape Electrical).

open_system('scdbuckconverter')
sim('scdbuckconverter')

7 PID Controller Tuning

Free download pdf