Augment the Linearization of a Block
This example shows how to augment the linearization of a block with additional time
delay dynamics, using a block linearization specification function.
(^1) Open Simulink model.
mdl = 'scdFcnCall';
open_system(mdl)
This model includes a continuous time plant, Plant, and a discrete-time controller,
Controller. The D/A block discretizes the plant output with a sampling time of 0.1
s. The External Scheduler block triggers the controller to execute with the same
period, 0.1 s. However, the trigger has an offset of 0.05 s relative to the discretized
plant output. For that reason, the controller does not process a change in the
reference signal until 0.05 s after the change occurs. This offset introduces a time
delay of 0.05 s into the model.
(^2) (Optional) Linearize the closed-loop model at the model operating point without
specifying a linearization for the Controller block.
io = getlinio(mdl);
sys_nd = linearize(mdl,io);
The getlinio function returns the linearization input and output points that are
already defined in the model.
Augment the Linearization of a Block