Simulink Control Design™ - MathWorks

(Tuis.) #1
To achieve an accurate linearization, set the model reference block to normal simulation
mode to allow the block-by-block linearization of the referenced model by running the
following command.

set_param('scdspeed_ctrlloop/Engine Model','SimulationMode','Normal')

Notice that the corners of the model block are now white triangles indicating that its
simulation mode is set to normal, as showing in the following figure.

Linearize the model between the speed reference and the speed output and plot the
resulting step response by running:

io(1) = linio('scdspeed_ctrlloop/Speed Reference',1,'input');
io(2) = linio('scdspeed_ctrlloop/Speed Output',1,'output');
sys_normal = linearize(topmdl,io);
step(sys_normal);

2 Linearization

Free download pdf