LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How testing presence of DAQ card?

Is it possible to detect programaticaly if there is a DAQ card installed in the computer where my application is running?

Thanks!
0 Kudos
Message 1 of 8
(4,091 Views)
Hi,
you may perform "Functions->Data Acquisition->Analog Input->AI Config.vi" or something like this with some default parameters. Then check the status of "error out" from this vi. If error exists then there is either no card in your PC or it's installed incorrectly or it has not been configured using NI MAX. So this will allow you to check card presence.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 8
(4,091 Views)
use the
Get DAQ Device Information.vi
found in
data aquisition : calibration and configuration menu
you can get information about any daq card in the computer, nidaq version, etc
Message 3 of 8
(4,091 Views)
Well, thanks for your help.
Your solution is perfect to know what kind of DAQ card is is installed and others characteristics. But if there is no card installed, many dlls are missing and the application is not runnable (error when loading Get DAQ Device Information). I try to add those dlls manualy, but there still problems remaining: dll initialisation routine failure...
0 Kudos
Message 4 of 8
(4,091 Views)
Nicolo,

If NI-DAQ is installed correctly, you should not receive DLL-related errors when you call Get DAQ Device Information.vi without a DAQ device installed in your system. I just ran this VI without a DAQ device in my system, and I received the expected -10401 error. Which DLLs are being referenced in the errors you are receiving?

Spencer S.
0 Kudos
Message 5 of 8
(4,091 Views)
Ok, but I want to install and run my stand alone application on every computer, even those whithout any DAQ card and where NI-DAQ is not installed. Then I want to check (run time) if there is a DAQ card installed on the computer to make disabled controls using DAQ. Is it possible?
Thank you

Ps: some of the dlls missing are nipalu.dll, nidaq32.dll ....
0 Kudos
Message 6 of 8
(4,091 Views)
If you want to use in a LabView program the functionality that deals with daq cards, even if none is installed in a computer, then you need at least to have NIdaq installed.
Or else the program you write will not run.

Simple checking of the existance of a daq card requires that nidaq be installed.
0 Kudos
Message 7 of 8
(4,091 Views)
If you simply want to check if NI-DAQ is not installed, check for the existance of the files. Nidaq32.dll is the main one. If that exists, you could go on and check if there's an actual card in the system.
0 Kudos
Message 8 of 8
(4,091 Views)