Step 1. Create Deployable Simulink Model with PID Autotuner
Block
Using a PID autotuner block for real-time tuning requires creating a Simulink model for
deployment. There are several ways to do so.
Deployable Module with Autotuner Only
In the most basic form, a model for deploying real-time PID autotuning resembles the
following illustration, using either the Closed-Loop PID Autotuner or the Open-Loop PID
Autotuner block. An advantage of this approach is that it lets you switch between and
tune different PID controllers at run time.
Here, the blocks connected to the inputs and outputs of the PID autotuner block
represent hardware interfaces that read or write real-time data for your system. For
example, the Read PID controller output block can be an interface for receiving
serial data, a UDP Receive block for receiving UDP packets, or an interface for receiving
other signals via wireless network. Similarly the blocks for writing data, such as Write
8 PID Autotuning