Simulink Control Design™ - MathWorks

(Tuis.) #1
Define input sinestream signals from 10 to 10,000 rad/sec with a fixed sample time of
4e-6 sec. The sinestream signal magnitude is 0.25 V. This magnitude ensures that the
plant is properly excited within the saturation limit. If the excitation amplitude is either
too large or too small, it produces inaccurate frequency response estimation results.

in = frest.createFixedTsSinestream(4e-6,{10,1e4});
in.Amplitude = 0.25;

Estimate the frequency response at the specified steady state operating point op, using
the linear analysis points in io and the input signals in in. After finishing the frequency
response estimation, modify the input and output channel names in the resulting model,
and plot the frequency response.

estsys = frestimate(mdl,op,io,in);
estsys.InputName = {'Vd','Vq'};
estsys.OutputName = {'Id','Iq','speed'};
bode(estsys,'.')

13 Control System Tuning Examples

Free download pdf