Example Code

Programmatically Reading and Setting the Module Programming Modes for CompactRIO

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

  • cRIO-9041
  • cRIO-9043
  • cRIO-9045
  • cRIO-9049
  • cRIO-9053
  • cRIO-9054
  • cRIO-9055
  • cRIO-9056
  • cRIO-9057

    Driver

  • NI-DAQ™mx

Code and Documents

Attachment

Description

These VIs will enable you to get and set the CompactRIO Module Property Mode (Get Programming Modes.vi and Set Programming Modes.vi). The example code also includes a higher-level VI to save Module Programming Modes to a file and retrieve them from that same file at a later date.

How to Use

The NI-DAQmx device driver support for the CompactRIO controllers includes properties that allow to programmatically read and set the Module Programming Modes for slots. To interact with these properties, you must also install the NI System Configuration software.

Related Links

Using CompactRIO with the NI-DAQmx API

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