mdl = 'scdcascade';
open_system(mdl);
The control system consists of two feedback loops, an inner loop with PI controller C2,
and an outer loop with PI controller C1. Suppose you want to tune this model to meet the
following control objectives:
- Track setpoint changes to r at the system output y1m with zero steady-state error and
specified rise time. - Reject the disturbance represented by d2.
The systune command can jointly tune the controller blocks to meet these design
requirements, which you specify using TuningGoal objects. The slTuner interface sets
up this tuning task.
Create an slTuner interface for the model.
st = slTuner(mdl,{'C1','C2'});
This command initializes the slTuner interface and designates the two PI controller
blocks as tunable. Each tunable block is automatically parameterized according to its type
and initialized with its value in the Simulink model. A linearization of the remaining,
nontunable portion of the model is computed and stored in the slTuner interface.
To configure the slTuner interface, designate as analysis points any signal locations of
relevance to your design requirements. Add the output and reference input for the
tracking requirement. Also, add the disturbance-rejection location.
slTuner