Simulink Control Design™ - MathWorks

(Tuis.) #1

When the experiment is complete, you can obtain the estimated frequency response at the
frd port.


If your deployed environment is short of resources for the online estimation computation,
you can configure the block to collect experiment data only, and perform the estimation
offline later. For an example, see “Collect Frequency Response Experiment Data for
Offline Estimation” on page 6-23.


Access Experiment Parameters After Deployment


Some of the parameters that you set to configure the estimation experiment are tunable,
such that you can access them in the generated code. Most parameters, however, are not
tunable. For those parameters, you must configure them in the block before deployment,
or use an external block port for the parameters for which one is available.


Tunable Parameters


The following parameters of the Frequency Response Estimator block are tunable after
deployment. For more information about all these parameters, see the block reference
pages.


Parameter Description
Number of estimation periods Number of periods after settling to use for
estimation (sinestream mode)
Number of settling periods Number of periods to wait for settling of
transients (sinestream mode)
Number of periods of the lowest
frequency used for estimation

Duration of data-collection window
(superposition mode)

Non-Tunable Parameters


The remaining parameters of the Frequency Response Estimator are not tunable after
deployment. For the Frequencies and Amplitudes parameters, you can enable external
ports that allow you to supply experiment frequencies and perturbation amplitudes after
deployment. To enable the w and amp block inputs, in the Excitation Signal Source
parameter, select External ports.


Deploy Frequency Response Estimation Algorithm for Real-Time Use
Free download pdf