Solution
This error can occur if the modules are not in the expected programming mode (Scan Engine, FPGA, or NI-DAQmx for newer cRIO models). You can get and set the programming mode in three different ways: programmatically, through NI Measurement and Automation Explorer (MAX), or LabVIEW Project. The first 2 options are only available for cRIO controllers with NI-DAQmx support.
Programmatically
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 also need to install the NI System Configuration.
You can see an example of how to use these properties in Programmatically Reading and Setting the Module Programming Mode for CompactRIO.
NI MAX
On NI MAX, select the controller you are working with and expand the Devices and Interfaces tab. Select the module, choose the desired programming mode, and press Save.
LabVIEW Project
To deploy the correct program mode in LabVIEW, open the LabVIEW Project window, put the module in the desired mode, right-click the module, and click Deploy (Scan Engine) or Deploy Module Modules (NI-DAQmx or FPGA).
