ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ: error 10041

I use a DAQ card to measure a voltage, and my program works. But when I create an application of my program (xxxxx.exe), there is an error: "error 10041, The specified task ID is invalid. For instance, you may have connected a taskID from an Analog Input VI to a Digital I/O VI."
Do you know what i'm supposed to do?
0 Kudos
Message 1 of 3
(2,969 Views)
in your LV  program, you may be setting some channels / devices without making them defaults. It will probably work.  But when you create the application, the original value (the default) is used.
 
0 Kudos
Message 2 of 3
(2,964 Views)

Hello,

To make current values default in your front panel controls, open your VI and then go to the Menu "Operate >> Make Current Values Default". Save your VI and rebuild your executable with the application builder. It should work now. Do not forget to install NI-DAQ on all the target PCs where your executable will be installed.

Hope this helps.

Matthieu G.

 

0 Kudos
Message 3 of 3
(2,939 Views)