Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

"The NI-DAQ DLL could not be called due to interface error"

I am using measurement studio in C++. I have the following code:

CCWAI m_analogIN1;
m_analogIN1.SetNScans(m_ScanRateForA1 * m_scanTime1);
m_analogIN1.Configure();

SetNScans and Configure are legitimate methods declared in cwai.h created automatically. when I call configure, I get the following error:

"The NI-DAQ DLL could not be called due to interface error"

I appreciate your help.
0 Kudos
Message 1 of 4
(3,689 Views)
Hello;

There was probably something wrong during the installation of the NI-DAQ driver.
The best way to go about that is to uninstall NI-DAQ cmpletely, remove the DAQ device from the machine, reboot the computer, reinstall the driver, and choose to install the support files for VC++, during the installation.

That should fix the problem.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,689 Views)
This is a known NI-DAQ issue that's documented in the following knowledgebase entries:

1) http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/6b75ca1982574cb7862569ae00784fff?OpenDocument

2)
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/38afa6f57a0edc1586256ab2005cc81d?OpenDocument

Depedending on which one applies to you, there's a patch you can download and install for your current version of NI-DAQ.

Regards,
Azucena Perez
NI
Message 3 of 4
(3,689 Views)
A national insrument engineer helped me to resolve this issue. I'll post here for other novices like myself.

Open MAX, select your device from the list of installed devices that is auotmaitcally detected by the software (i.e. if you already have the card installed in the computer.) select the device on the left column, choose NEW and enter a channel number. Make sure that the cursor is not blinking in the channel field after you exit the form, otherwise, your data would not be saved. Now things should work.
0 Kudos
Message 4 of 4
(3,689 Views)