Simulink Control Design™ - MathWorks

(Tuis.) #1

Create an slLinearizer interface for the model.


sllin = slLinearizer(mdl);


To calculate the complementary sensitivity transfer function for the inner loop at y2, use
the y2 signal as the analysis point. To eliminate the effects of the outer loop, break the
outer loop at y1m. Add both these points to sllin.


addPoint(sllin,{'y2','y1m'});


Obtain the complementary sensitivity function for the inner loop at y2.


sys = getCompSensitivity(sllin,'y2','y1m');


Here, 'y1m', the third input argument, specifies a temporary opening for the outer loop.


Obtain Complementary Sensitivity Function for Specific Parameter Combination


Suppose you batch linearize the scdcascade model for multiple transfer functions. For
most linearizations, you vary the proportional (Kp2) and integral gain (Ki2) of the C2
controller in the 10% range. For this example, calculate the complementary sensitivity
function for the inner loop for the maximum value of Kp2 and Ki2.


Open the scdcascade model.


getCompSensitivity
Free download pdf