Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-6259 AI_Configure returns -10401 error

Hi,
I'm using MS VC++ to program an application that uses PCI-6259 M-Series DAQ card. I'm having trouble configuring and reading data from this device. AI_Configure(...) function returns with an error code of -10401 (unknown device error). What could I be missing.

OS: Windows XP Professional
NIDAQ: Version 7.3
Include file: nidaq.h
lib files: nidaq32.lib
lib files: nidex32.lib

Best Regards,
Ted
0 Kudos
Message 1 of 2
(2,526 Views)
Hello Ted. Thank you for contacting National Instruments. You are getting this error because you are trying to use Traditional DAQ calls with a PCI board that requires DAQmx calls. There is a great help file called NI-DAQmx C Reference Help that comes with NI-DAQ. This file shows up on your computer as daqmxcfunc and can be found at C:\Program Files\National Instruments\NI-DAQ\Docs. For example, if you are reading in a voltage, AI_Configure() in traditional becomes DAQmxCreateAIVoltageChan() in DAQmx. Example programs can be found at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C. I hope this helps! Have a great day!

Marni S.
National Instruments
0 Kudos
Message 2 of 2
(2,518 Views)