Simulink Control Design™ - MathWorks

(Tuis.) #1
Create an slTuner interface for rct_diskdrive. Add C and F as tuned blocks of the
interface.

open_system('rct_diskdrive');
st = slTuner('rct_diskdrive',{'C','F'});

The default parameterization of the transfer function block, F, is a transfer function with
two free parameters. Because F is a low-pass filter, you must constrain its coefficients. To
do so, specify a custom parameterization of F with filter coefficient a.

a = realp('a',1);
setBlockParam(st,'F',tf(a,[1 a]));

Convert st to a genss model.

m = getIOTransfer(st,{'r','n'},{'y','e'});

Typically, for tuning with hinfstruct, you append weighting functions to the genss
model that depend on your design requirements. You then tune the augmented model. For
more information, see “Fixed-Structure H-infinity Synthesis with HINFSTRUCT” (Robust
Control Toolbox).

For this example, instead of tuning the model, manually adjust the tuned variable values.

15 Alphabetical List

Free download pdf