Validate Design in Simulink Model
When you tune a Simulink model, the software evaluates tuning goals for a linearization
of the model. Similarly, analysis commands such as getIOTransfer extract linearized
system responses. Therefore, you must validate the tuned controller parameters by
simulating the full nonlinear model with the tuned controller parameters, even if the
tuned linear system meets all your design requirements. To do so, write the tuned
parameter values to the model.
TipIf you tune the Simulink model at an operating point other than the model initial
condition, initialize the model at the same operating point before validating the tuned
controller parameters. See “Simulate Simulink Model at Specific Operating Point” on
page 1-119.
Write Parameters at the Command Line
To write tuned block values from a tuned slTuner interface to the corresponding
Simulink model, use the writeBlockValue command. For example, suppose ST1 is the
tuned slTuner interface returned by systune. The following command writes the tuned
parameters from ST1 to the associated Simulink model.
writeBlockValue(ST1)
Simulate the Simulink model to evaluate system performance with the tuned parameter
values.
Write Parameters in Control System Tuner
To write tuned block parameters to a Simulink model, in the Control System tab, click
Update Blocks.
10 Control System Tuning