Example Code

How to programmatically query information from the C-Series modules off a cRIO

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • CompactRIO|SingleBoardRIO

    Software

  • LabVIEW Real-Time Module
  • LabVIEW

Code and Documents

Attachment

 

Overview

This example demonstrates how to query programmatically the C-Series modules in a cRIO and get the available inputs/outputs.

 

Description

It is sometimes necessary to query information from the C-Series modules used in a cRIO/sbRIO. This information can be used for documentation purpose or to write custom tools.

This example shows how you can gain this information through the use of property nodes from the LabVIEW-Project.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • LabVIEW Real-Time Module 2012 (or compatible)

 Hardware

  • cRIO/sbRIO Real-Time target

 

Steps to Implement or Execute Code

  1. Download and open the attached ZIP-file
  2. Open the LabVIEW-Project and follow the instructions in the VI

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**

Many thanks for using the NI forums and I look forward to your reply.

Kind regards

David

Applications Engineer
National Instruments UK

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