02-24-2014 02:55 PM
Recently I have been converting a program I wrote several years ago under Windows XP to run on Windows 7 Profession 64bit. The program interfaces with a NI PCI-6052E as well as several non-NI cards. The Windows XP version checked to see if the NIDAQ32.dll driver was present and if it wasn't I replaced the NI function calls with dummy functions that would allow the program to continue to run. While converting to Windows 7 I switched from the Traditional NI-DAQ 6.93f3 driver to Ni-DAQmx 9.5.5f4. The problem I have is, if I want to run my program on a computer that does not have the drivers installed the program exits before it executes a single line of code with the following message: "The program can't start because nicaiu.dll is missing from your computer." Is there any way to trap this error message so I can handle it in my code?
I would like to be able to run the program as a standalone as we use it to review data as well as take it. Ideally I would like to be able to run the program from a thumb drive.
02-25-2014 01:42 PM
This sounds really similar to this forum post:
http://forums.ni.com/t5/Measurement-Studio-for-VC/Deploy-NIDAQMX-missing-nicaiu-dll/td-p/383332
I'm pretty sure you need the drivers on the target computer if your stand alone program interfaces with hardware.
02-25-2014 02:13 PM
The program is used to look at previously acquired data as well as take the data. In the past we just checked for the presence of the 32 bit data driver. If the driver wasn't installed then we used dummy pointers and skipped over the acquisition side of the program. This allowed us to look at old datafiles on a machine that didn't have the hardware or drivers installed. The new driver files don't even let the program start running without throwing an error and exiting. So we cannot get to a point where we can programatically catch the error code and skip the acquisition side of the code.
02-26-2014 12:21 PM
Did you re-build the stand alone program file in Windows 7? Or are you using the same one from the XP build?
And can you see where the stand-alone is looking for this "nicaiu.dll"?
07-22-2016 04:09 PM
good nigth i have one question..
i have a vi with visa and daq capabilities (created using daq express) that works great at the previously instaled labview pc, i create an exe for the application and one installer for visa,daq and net drivers
The exe at a new pc doesnt receive the reading, however the NImax can read the reading properly...
i reinstaled the daq drivers 15.5 version and the hotfix for USB at xp sp3 ...and i am clue..less, and the problem is just with daq visa works well
thanks in advance
07-22-2016 05:33 PM
@riotimus wrote:The exe at a new pc doesnt receive the reading, however the NImax can read the reading properly...
If MAX can read the data, then your drivers are fine. You have an issue in your application. My guess is that you do not have the devices properly named. Did you perform and import of your DAQ settings?
07-23-2016 09:38 AM