Simulink Control Design™ - MathWorks

(Tuis.) #1
location on your MATLAB path. (For this example, the function is already saved as
scdAddDelayFcn.m.)

function sys = scdAddDelayFcn(BlockData)
sys = BlockData.BlockLinearization*thiran(0.05,0.1);

The input to the function, BlockData, is a structure that the software creates
automatically each time it linearizes the block. When you specify a block linearization
configuration function, the software automatically passes BlockData to the function.
The field BlockData.BlockLinearization contains the current linearization of
the block.

This configuration function approximates the time delay as a thiran filter. The filter
indicates a discrete-time approximation of the fractional time delay of 0.5 sampling
periods. (The 0.05 s delay has a sampling time of 0.1 s).

(^5) Specify the configuration function scdAddDelayFcn as the linearization for the
Controller block.
a Right-click the Controller block, and select Linear Analysis > Specify
Selected Block Linearization.
b Select the Specify block linearization using one of the following check box.
Then, select Configuration Function from the drop-down list.
c Enter the function name scdAddDelayFcn in the text box. scdAddDelayFcn
has no parameters, so leave the parameter table blank.
d Click OK.
Augment the Linearization of a Block

Free download pdf