Simulink Control Design™ - MathWorks

(Tuis.) #1

Vary Parameter Values and Obtain Multiple Transfer


Functions


This example shows how to use the slLinearizer interface to batch linearize a
Simulink® model. You vary model parameter values and obtain multiple open-loop and
closed-loop transfer functions from the model.

You can perform the same analysis using the linearize command. However, when you
want to obtain multiple open-loop and closed-loop transfer functions, especially for
models that are expensive to compile repeatedly, slLinearizer can be more efficient.

Since the parameter variations in this example do not affect the operating point of the
model, you batch linearize the model at a single operating point. If your application uses
parameter variations that affect the model operating point, first trim the model for each
parameter value combination. For an example that uses the linearize command, see
“Batch Linearize Model at Multiple Operating Points Derived from Parameter Variations”
on page 3-25.

Create slLinearizer Interface for Model

The scdcascade model used for this example contains a pair of cascaded feedback
control loops. Each loop includes a PI controller. The plant models, G1 (outer loop) and G2
(inner loop), are LTI models.

Use the slLinearizer interface to analyze the inner-loop and outer-loop dynamics.

Open the model.

mdl = 'scdcascade';
open_system(mdl);

3 Batch Linearization

Free download pdf