Programmatically Implementing and Autotuning a PID Controller

You can use the PID Advanced Autotuning VI both to implement and autotune a PID controller.

Note��The PID Advanced Autotuning VI incorporates the functionality of the PID Advanced VI and the PID Online Autotuning VI. You also can use the PID Online Autotuning VI to programmatically autotune a previously implemented PID controller.

Complete the following steps to implement a tuned PID controller with the PID Advanced Autotuning VI.

  1. Add the PID Advanced Autotuning VI to the block diagram within a control loop.
  2. Wire the inputs you want to use to implement the controller. Minimally, wire the setpoint, process variable, and PID gains inputs.
  3. Create a control for the autotuning parameters input and select the controller type and control specification you want to use.
  4. Set the technique component of the autotuning parameters input to the autotuning technique you want to use.
  5. Create a Boolean control with latched mechanical action and a default value of FALSE for the Autotune? input.
  6. Run the VI.
  7. Set Autotune? to TRUE to begin autotuning.

Refer to the Autotuning PID Online VI in the labview\examples\control\PID for an example of implementing autotuning with the PID Advanced Autotuning VI.

Open example� Find related examples