11-08-2007 08:02 PM
[AI-VRead] returned NI-DAQ error 10401.I've been recieving several errors which have been resolved, but I cannot solve this one. Any information would be appreciated.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.
11-12-2007 08:33 AM
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:
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,
11-15-2007 08:23 PM
11-19-2007 08:32 AM
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.
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,
02-17-2010 10:33 AM
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
02-22-2010 12:20 PM
Hi Nik,
PCMCIA-GPIB needs 488.2 for communication rather than Traditional DAQ. Hopefully this helps!