Simulink Control Design™ - MathWorks

(Tuis.) #1

Extract the LinearizationAdvisor object from info.


advisor = info.Advisor


advisor =
LinearizationAdvisor with properties:


Model: 'scdspeed'
OperatingPoint: [1x1 opcond.OperatingPoint]
BlockDiagnostics: [1x27 linearize.advisor.BlockDiagnostic]
QueryType: 'All Blocks'


Create LinearizationAdvisor Using slTuner Interface


Load Simulink model.


mdl = 'scdspeed';
load_system(mdl)


Create a slTunerOptions option set, enabling the StoreAdvisor option.


opt = slTunerOptions('StoreAdvisor',true);


Define input and output analysis points, and create an slTuner interface using this
option set.


io(1) = linio('scdspeed/throttle (degrees)',1,'input');
io(2) = linio('scdspeed/rad//s to rpm',1,'output');
ST = slTuner(mdl,io,opt);


Typically, you would tune your control system using the systune function. Then, you can
find the transfer function from the input to the output, returning the info argument.


[linsys,info] = getIOTransfer(ST,'scdspeed/throttle (degrees)','scdspeed/rad//s to rpm');


Extract the LinearizationAdvisor object from info.


advisor = info.Advisor


advisor =
LinearizationAdvisor with properties:


LinearizationAdvisor
Free download pdf