NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Reference Example: Multi-channel PID Control with Operator Interface on CompactRIO

VERSION 6

Created on: Mar 30, 2009 2:48 PM by Kurt Williams - Last Modified:  Jan 12, 2010 1:26 PM by Kurt Williams

Functional Description

This reference example includes a recommended architecture for performing low channel count multi-channel PID control on CompactRIO using scan mode.

 

The project includes an embedded control (RT) application that runs on the cRIO controller and an HMI or operator interface (host) application that runs on a desktop or touch panel computer and communicates with the controller.

 

The application performs PID control on 4 temperature process variables. The status of each channel can be viewed on the operator interface and and shared variables are used to update setpoints, PID gains, and output limits on the controller.

 

UI.png

 

*This example uses the ni.com style controls from the UI Interest Group

 

The embedded control application, that runs on the cRIO controller, has two modes: idle and control enabled. This allows the application to be deployed as a start up application that simply sits idle, until the operator interface (host) applicaiton connects to it, sets the control parameters and enables the control process.

 

Optionally, the control process will also return to an idle state if the network connection with the host is lost.

 

 

Caveats and Additional Notes

This example requires LabVIEW Real-Time 8.6

 

View the CompactRIO Developer's Guide for additional development guidlines and reference architectures.

 

Downloads:
Average User Rating
(2 ratings)




Todd Sierer Todd Sierer  says:

thanks for posting!  could you please rename your attachment to include the LabVIEW version? "_lvXX.zip" is fine.

Kurt Williams Kurt Williams  says:

Updated the attached code.

 

The timed loops were set at the same priority. Whoops.

 

If you downloaded this previously, make sure to set your control loop to a priority greater than 100.

 

226