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

    %% Get Rate Conversion Settings of Tuned PID Block
% Create an |slTuner| interface for the Simulink model |scdcascade|.
% Examine the block rate conversion settings of one of the tuned
% blocks.
%%
open_system('scdcascade');
st = slTuner('scdcascade',{'C1','C2'});
%%
[IF,DF] = getBlockRateConversion(st,'C1')
%%
% |C1| is a PID block.  Therefore, its rate-conversion settings are
% expressed in terms of integrator and derivative filter methods.  For a
% continuous-time PID block, the rate-conversion methods are set to
% |Trapezoidal| by default.  To override this setting, use
% |setBlockRateConversion|.