|On this page…|
To set up your control system in MATLAB® for tuning with looptune:
Parameterize the tunable elements of your controller. You can use predefined structures such as ltiblock.pid, ltiblock.gain, and ltiblock.tf. Or, you can create your own structure from elementary tunable parameters (realp).
To set up your control system in Simulink® for tuning with systune (requires Simulink Control Design™ software):
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.
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.