Open the scdcascade model.
mdl = 'scdcascade';
open_system(mdl);
Create an slLinearizer interface for the model. Add the signals r, u1,|u2|, y1,|y2|,
y1m, and y2m to the interface.
sllin = slLinearizer(mdl,{'r','u1','u2','y1','y2','y1m','y2m'});
scdcascade contains two PID Controller blocks, C1 and C2. Suppose you want to vary
the proportional and integral gains of C2, Kp2 and Ki2, in the 10% range. Create a
structure to specify the parameter variations.
Kp2_range = linspace(0.9Kp2,1.1Kp2,3);
Ki2_range = linspace(0.9Ki2,1.1Ki2,5);
[Kp2_grid,Ki2_grid]=ndgrid(Kp2_range,Ki2_range);
params(1).Name = 'Kp2';
params(1).Value = Kp2_grid;
params(2).Name = 'Ki2';
params(2).Value = Ki2_grid;
params specifies a 3x5 parameter grid. Each point in this grid corresponds to a
combination of the Kp2 and Ki2 parameter values.
slLinearizer