setBlockRateConversion
Set 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
setBlockRateConversion(st,blk,method)
setBlockRateConversion(st,blk,'tustin',pwf)
setBlockRateConversion(st,blk,IF,DF)
Description
setBlockRateConversion(st,blk,method) sets the rate conversion method of a
tuned block on page 15-454 in the slTuner interface, st.
setBlockRateConversion(st,blk,'tustin',pwf) sets the Tustin method as the
rate conversion method for blk, with pwf as the prewarp frequency.
setBlockRateConversion(st,blk,IF,DF) sets the discretization methods for the
integrator and derivative filter terms when blk is a continuous-time PID Controller block.
For discrete-time PID blocks, these methods are specified in the Simulink block and
cannot be modified in the slTuner interface.
Examples
setBlockRateConversion