Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

10401-error occurs while running AO-Example

Hi folks,

I read a lot of stuff on the board about the 10401-error.  However, I found no answer which seemed to fit to my problem very well.

I'm using:
NI DAQPad-6016
NI SPY V2.1.0.12
NI -488.2 V1.70
NI-DAQmx V8.0.0f0
MAX V4.0.0.3010
NI-PAL V1.10.0f0
NI -USI V1.0.2
Traditional NI-DAQ V7.2.0f1

And this is (still) working very well within a LabView-VI (LabView7.1).

So far so good.

Now I need to program a faster runtime-exe in c++ to increase the measurement/controlling performance.  At first, I tried to learn from the
simple AO-Example (AOOnePoint.c under \National Instruments\NI-DAQ\Examples\VisualC\Ao). After running the compiled exe-file, error 10401 occured. What went wrong?

Thank you for help!

Berion


0 Kudos
Message 1 of 2
(3,096 Views)
The DAQPAd-6016 is only supported by the DAQmx driver, not by the traditional driver, which is used in the example you mentioned.
Please use one of the examples in this fodler:
\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\

These should work. Make sure that the used device name matches your settings in the Measurement and Automation Explorer.

Hope this helps!
0 Kudos
Message 2 of 2
(3,084 Views)