Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

ni daq error 10401

Hello,
I am quite new to DAQ and after compiling in VC++ I receive this error,
[AI-VRead] returned NI-DAQ error 10401.
The specified device is not national instruments product, the driver does not support the device (for example, the driver was released before the device was supported), or the device has not been configured using the Measurement & Automation Explorer.

I've been recieving several errors which have been resolved, but I cannot solve this one. Any information would be appreciated.
Thank you for your time.

Clay Upton
0 Kudos
Message 1 of 6
(11,047 Views)

Hello Clay,

 

I am glad to hear you are using DAQ with VC++. Typically, the –10401 error is received when the device is incorrectly specified. This issue can be as simple as using an incorrect device name. To further debug your application there are a few questions I would like to ask:

 

  1. What version of the NI-DAQ drivers are you using?
  2. Are you using Measurement Studio to develop your code?
  3. What is the DAQ device that you are attempting to communicate with?
  4. Have you tried opening up Measurement and Automation Explorer (MAX) to verify the device is correctly installed?
  5. Is the device name in MAX the same as the device name used in your code?
  6. Can you open up a test panel on the device without error?

 

You can find MAX by going to the National Instruments directory under program files in the Windows start menu. Once MAX has opened you should be able to see your device listed under Devices and Interfaces. You can access a test panel by right clicking on the device and selecting “Test Panels…” These are great tools to verify whether your device is functioning properly and you are calling it correctly in the application.

 

Since starting fresh using NI-DAQ can be a daunting task, I suggest looking at the ready made examples available to further troubleshoot your application. The following knowledgebase article walks you through installing and locating these examples:

 

How Do I Install Examples for Visual Basic, Visual C++, and Delphi with NI-DAQ

 

Regards,

Chris Behnke
Sr. RF Engineer
High Frequency Measurements
0 Kudos
Message 2 of 6
(11,011 Views)
I am testing an example. Specifically AOonePoint.C
  1. 7.3
  2. Just VisualC++ I believe
  3. NI PCI-6251
  4. yes
  5. I'm under the impression that this should be a numarical value, where MAX displays only a character value followed by a number
  6. The test panel works flawlessly

0 Kudos
Message 3 of 6
(10,986 Views)

Hello Clay,

Thank you for responding with more information on your system. The reason you are receiving the error is because you are attempting to run an M-series device with examples that use Traditional DAQ drivers. M-series devices, such as the PCI-625x family, are only supported by NI-DAQmx. You can verify this by looking at your device in Measurement and Automation Explorer. You will see your device listed under DAQmx devices, but not under Traditional NI-DAQ devices. If you do not see your device under DAQmx devices, then you will need to download and install the drivers from the website.

You can download and install the latest version of DAQmx from the following webpage:

NI-DAQmx 8.6 - Windows 2000/Vista x64/Vista x86/XP

When you run the installation, you will have the option of including support and example programs for Visual Basic and Visual C/C++. These examples are identical in functionality in functionality to those include with Traditional NI-DAQ.

Here are some additional resources which will get you started in developing your DAQmx applications.

What's New in NI-DAQmx 8.6

Getting Started with NI-DAQmx: Main Page

Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications

Let us know if you have any further questions and good luck with your application!

Regards,

Chris Behnke
Sr. RF Engineer
High Frequency Measurements
0 Kudos
Message 4 of 6
(10,959 Views)

Hi,

 

EVen I have a similiar problem.  I am working with VC++ program and gives me the following error:

[AI-configure]  returned NI-DAQ error-10401...

 

Again, I've been receiving several errors like nidaq32.dll not found, etc. which have been resolved but not this one. To give you more details, I will try answer the same questions you asked Clay in the message thread above:

 

1. What version of the NI-DAQ drivers are you using? Traditional NI-DAQ 7.4.4

2. Are you using Measurement Studio to develop your code? No, just VC++

3. What is the DAQ device that you are attempting to communicate with? It is a NI PCMCIA-GPIB

4. Have you tried opening up Measurement and Automation Explorer (MAX) to verify the device is correctly installed? Yes.

 

 

Any help will be great;y appreciated.

 

Thanks,

 

Nik 

0 Kudos
Message 5 of 6
(9,320 Views)

Hi Nik,

 

PCMCIA-GPIB needs 488.2 for communication rather than Traditional DAQ.  Hopefully this helps! 

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(9,272 Views)