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

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

% Copyright 2015 The MathWorks, Inc.

open_system('scdcascade')
st = slTuner('scdcascade',{'C1','C2'});

%%
% Retrieve the parameterization values for both tuned blocks in |st|.
blockValues = getBlockValue(st)

%%
% |blockValues| is a structure with field names corresponding to the names
% of the tunable blocks in |st|. The field values of |blockValues| are |pid| 
% models, because |C1| and |C2| are both PID Controller blocks.