Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check programmatically whether the DAQmx driver is installed?

We used the Traditional NI DAQ driver before and we still have to support our customers who have it. Now we are adding support for NI DAQmx: partially because we add support for new DAQs, partially not to become outdated at some point. But the older cusomer's system may not contain DAQmx installed. Therefore the software should be smart enough to use the traditional driver if the new one is unavalable.
The question is how I can check it (at this time we are using VC++ 6/.Net)?
Thank you,
Mike
0 Kudos
Message 1 of 3
(3,109 Views)

Hi MikeF_cetr,

As far as I can tell there is no nice and “clean” documented way to check for the installation of DAQmx.  There are several DAQmx calls to check the version number, and see what devices are installed, but none to check for the installation of the software itself.

One suggestion would be to do a query for one of the registry keys that are installed when DAQmx is installed.  The DAQmx registry keys are located in \HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-DAQmx.  You could check for the folder, for the default key, or for any of the other keys located in this folder.

Jared T.
0 Kudos
Message 2 of 3
(3,090 Views)


@J_Thomas wrote:

Hi MikeF_cetr,

As far as I can tell there is no nice and “clean” documented way to check for the installation of DAQmx.  There are several DAQmx calls to check the version number, and see what devices are installed, but none to check for the installation of the software itself.

One suggestion would be to do a query for one of the registry keys that are installed when DAQmx is installed.  The DAQmx registry keys are located in \HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-DAQmx.  You could check for the folder, for the default key, or for any of the other keys located in this folder.



Thank you Thomas!
Even though this is - like you put it - not nice and clean way, but it can still be used.
0 Kudos
Message 3 of 3
(3,087 Views)