From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Construct PID in Control Design and Simulation Module

Code and Documents

Attachment

Description

Overview

This example shows how PID control can be implemented in a simulation environment using the LabVIEW Control Design and Simulation Module.

 

Description

The example VI is a standard single-input single-output control system running in a simulation environment. The controller used is parallel PID and the plant in this case is a basic transfer function example. This example is intended to be used as a reference for design. The controller, plant, and other components can be easily expanded.

 

The user is able to change the PID gains on the front panel to see the affect on the closed-loop system. User can also change the plant model by double-clicking on the Transfer Function VI and modify the numerator and denominator accordingly.

 

cd&simbd.png

 

cd&simfp.png

 

 

 

Steps to Implement or Execute Code

  1. Open the corresponding VI that matches with your development version.
  2. You're all set, go ahead and run the VI!
  3. You can modify VI further by adding simulation components from the subpalette: Control Design & Simulation > Simulation found in the LabVIEW functions palette

 

 

Requirements

Software

LabVIEW Development Environment 2010 or higher

LabVIEW Control Design and Simulation Module 2010 or higher

 

Hardware

N/A

 

Additional Notes

Here are some additional resources:

 

LabVIEW Control Design and Simulation Download 

PID Control

Closed Loop Motor Control with LabVIEW

 

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Andy Chang
National Instruments
LabVIEW Control Design and Simulation

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
9885110417
Member
Member
on

very very nice..!

UMIK
Member
Member
on

Nice