To download NI software, including the products shown below, visit ni.com/downloads.
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.
Description-Separate-2The 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.
How-Separate-2Using CompactRIO with the NI-DAQmx API
Related-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Thanks. A useful example. Please note that the VI description of the Get Programming Modes subVI is incorrect.
It states "This utility VI takes an array of cRIO Programming Modes and applies them to the chassis. The array of modes will be applied starting with the first slot in the chassis, e.g. the mode at index 0 will be applied to slot 1 of the chassis.". This is the same as the VI description of the Set Programming Modes subVI. This description is correct for the "Set" VI, but is incorrect for the "Get" VI.