Solution
This error can occur if you have not manually set the program mode. You can get and set the program mode three different ways: programmatically, through and NI Measurement and Automation Explorer (MAX) or LabVIEW Project.
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, also needed 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 Modes for CompactRIO.
NI MAX
Reference section 1 of the Using CompactRIO with the NI-DAQmx API,
Select the Appropriate Programming Model, to see how to set the program mode for your modules.
LabVIEW Project
To deploy the correct program mode in LabVIEW, open the LabVIEW Project window, Right-click Module and click
Deploy.