www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/GetCurrentValueOfMultipleTunedBlockParameterizationsExample.m

    %% Get Current Values of Multiple Tuned Block Parameterizations
%%
% Create an |slTuner| interface for the |scdhelicopter| model.

% Copyright 2015 The MathWorks, Inc.

open_system('scdhelicopter')
st = slTuner('scdhelicopter',{'PI1','PI2','PI3','SOF'});

%%
% Retrieve the values of parameterizations for the PI controller blocks in
% the model.
[valPI1,valPI2,valPI3] = getBlockParam(st,'PI1','PI2','PI3');