Simulink Control Design™ - MathWorks

(Tuis.) #1

getBlockRateConversion


Get rate conversion settings for tuned block in slTuner interface

When you use systune with Simulink, tuning is performed at the sampling rate specified
by the Ts property of the slTuner interface. When you use writeBlockValue to write
tuned parameters back to the Simulink model, each tuned block value is automatically
converted from the sample time used for tuning, to the sample time of the Simulink block.
The rate conversion method associated with each tuned block specifies how this
resampling operation should be performed. Use getBlockRateConversion to query the
block conversion rate and use setBlockRateConversion to modify it.

Syntax


method = getBlockRateConversion(st,blk)
[method,pwf] = getBlockRateConversion(st,blk)

[IF,DF] = getBlockRateConversion(st,blk)

Description


method = getBlockRateConversion(st,blk) returns the rate conversion method
associated with the tuned block on page 15-401, blk.

[method,pwf] = getBlockRateConversion(st,blk) also returns the prewarp
frequency. When method is not 'tustin', the prewarp frequency is always 0.

[IF,DF] = getBlockRateConversion(st,blk) returns the discretization methods
for the integrator and derivative filter terms when blk is a PID Controller block.

Examples


15 Alphabetical List

Free download pdf