Set Up Your Control System for Tuning with looptune
Set Up Your Control System for looptunein MATLAB
To set up your control system in MATLAB for tuning with looptune:
(^1) Parameterize the tunable elements of your controller. You can use predefined
structures such as tunablePID, tunableGain, and tunableTF. Or, you can create
your own structure from elementary tunable parameters (realp).
(^2) Use model interconnection commands such as series and connect to build a
tunable genss model representing the controller C0.
(^3) Create a Numeric LTI model (Control System Toolbox) representing the plant G. For
co-tuning the plant and controller, represent the plant as a tunable genss model.
Set Up Your Control System for looptune in Simulink
To set up your control system in Simulink for tuning with systune (requires Simulink
Control Design software):
(^1) Use slTuner to create an interface to the Simulink model of your control system.
When you create the interface, you specify which blocks to tune in your model.
(^2) Use addPoint to specify the control and measurement signals that define the
boundaries between plant and controller. Use addOpening to mark optional loop-
opening or signal injection sites for specifying and assessing open-loop requirements.
The slTuner interface automatically linearizes your Simulink model. The slTuner
interface also automatically parametrizes the blocks that you specify as tunable blocks.
For more information about this linearization, see the slTuner reference page and “How
Tuned Simulink Blocks Are Parameterized” on page 10-36.
See Also
Related Examples
- “Tune MIMO Control System for Specified Bandwidth” on page 12-6
- “Tuning Feedback Loops with LOOPTUNE” (Control System Toolbox)
12 Loop-Shaping Design