Deploy Frequency Response Estimation Algorithm for
Real-Time Use
You can use the online frequency-response estimation algorithm in a standalone
application for real-time estimation of a physical plant. To do so, you must deploy the
Frequency Response Estimator block into your own system by creating a Simulink model
for deployment. You can configure this model with the experiment parameters. Or, you
can configure it to supply such parameters externally from elsewhere in your system.
Once deployed to your own system, the estimator model injects signals into your plant
and receives the plant response, without using Simulink to control the experiment.
Deploying the estimation algorithm requires a code-generation product such as Simulink
Coder.
Workflow
In overview, the workflow for deploying the Frequency Response Estimator for real-time
tuning is:
(^1) Create a Simulink model on page 6-11 for deploying the block to your system.
(^2) Configure the start/stop signal on page 6-15 that controls when the estimation
experiment begins and ends.
(^3) Configure experiment parameters on page 6-16 such as the frequencies at which
you want to perform estimation.
(^4) Deploy the model to your system, and run the estimation experiment on page 6-16
against your physical plant. When you end the experiment, you can examine the
estimated frequency response.
In practice, for real-time estimation, you might want to specify some parameters at run
time, such as the estimation frequencies or perturbation amplitudes. For information
about specifying parameters in your deployed application, see “Access Experiment
Parameters After Deployment” on page 6-17.
Step 1. Create Deployable Simulink Model with Frequency
Response Estimator Block
Using a Frequency Response Estimator block for real-time estimation requires creating a
Simulink model for deployment. In the most basic form, a model for deploying real-time
estimation resembles the following illustration.
Deploy Frequency Response Estimation Algorithm for Real-Time Use