mdl_index = params(1).Value == max(Kp2_range) & params(2).Value == max(Ki2_range);
Obtain the inner-loop loop transfer function at e2, with the outer loop open.
sys = getLoopTransfer(sllin,'e2','y1m',-1,mdl_index);
The fourth input argument specifies negative-feedback for the loop transfer calculation.
Obtain Offsets from Loop Transfer Function
Open Simulink model.
mdl = 'watertank';
open_system(mdl)
Create a linearization option set, and set the StoreOffsets option.
opt = linearizeOptions('StoreOffsets',true);
Create slLinearizer interface.
sllin = slLinearizer(mdl,opt);
Add an analysis point at the tank output port.
addPoint(sllin,'watertank/Water-Tank System');
Calculate the loop transfer function at the analysis point, and obtain the corresponding
linearization offsets.
15 Alphabetical List