This returns an updated description ST1 containing the tuned gain values. To validate this
design, plot the closed-loop response from speed demand to speed:T1 = getIOTransfer(ST1,'Speed Demand (rpm)',{'rpm','i'});
figure
step(T1)The response looks good in the linear domain so push the tuned gain values to Simulink
and further validate the design in the nonlinear model.writeBlockValue(ST1)13 Control System Tuning Examples