Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Locating DAQmx version from registry

Hi everyone,

 

I need to be able getting a currently installed DAQmx version without using the NI software.

Previously I could open the registry, and locate the

HKLM\National Instruments\NI-DAQ\CurrentVersion\ key for the traditional NO driver,  or

HKLM\National Instruments\NI-DAQmx\CurrentVersion\ key for the DAQmx driver,

and read the SoftwareName or Version string from there.

To my disappointment NI changed it - on the computer where I have DAQmx ver. 14.1.0 installed, the above key exists, but it does not contain any version information.

Does anyone know how to achieve this goal and find the driver version?

 

Thank you,

Mike

 

0 Kudos
Message 1 of 8
(4,859 Views)

What's wrong with just looking in MAX?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(4,835 Views)

Hi   -

and thanks for your reply. I have several considerations:

1. NI DAQ is not the only device I have to control (and therefore the DAQmx is not the only software I would like to check the version for). That is why I prefer to keep it uniform, and so far it worked for me;

2. Before using the MAX I will have to check if the MAX is there at all - this is an additional step to take, and to find out how to reliably do it;

3. I never tried (even though it may be easy) to use the MAX as a server, I know how to check the software version opening the MAX and looking into it, but would have to learn not how to do it programmatically, so that my software would request this information from MAX.

 

0 Kudos
Message 3 of 8
(4,811 Views)

3. I never tried (even though it may be easy) to use the MAX as a server, I know how to check the software version opening the MAX and looking into it, but would have to learn not how to do it programmatically, so that my software would request this information from MAX.


The system configuration API can do this pretty easily via the Get System Experts call (not sure what ADE you're using so I'll assume LabVIEW):

 

GetSystemExperts.png

 

SysConfigTest.png

 

 

 

If you'd rather look in the registry, I suspect you'll find the information here (assuming a 64-bit OS):

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\National Instruments\NI-DAQmx\CurrentVersion

 

 

 

Best Regards,

John Passiak
0 Kudos
Message 4 of 8
(4,797 Views)

Hi John,

 

sorry - I completely forgot to mention the ADE (which certainly seems trivial to me). No - that is the problem - I do not use LabVIEW, It is Visual Studio 2012/C++ - based application. Moreover, it is not even a managed app...

 

 

0 Kudos
Message 5 of 8
(4,765 Views)

Ah OK--I haven't used the system config API outside of LabVIEW... the readme says it has C# support in VS2012 (and it also has CVI support which is NI's ANSI C environment) so I'm sure it's possible to get something working if you did want to go that route.

 

Did you find the information in the Wow6432Node branch of the registry?

 

 

Best Regards,

John Passiak
Message 6 of 8
(4,742 Views)

Hi John,

thank you - I found it. Interesting enough that it seems the registry routines are smart enough to look in the Wow6432Node key area and even though the software explicitly directs it to the HKLM\Software\National Instruments\CurrentVersion (which in thte 64-bit Windows does not exist) - the search obviously ends up at the "Wow6432Node" key location, because returns the correct value.

Thank you again!

 

0 Kudos
Message 7 of 8
(4,740 Views)

Good to hear--this is behavior is actually a Windows feature.

 

 

Best Regards,

John Passiak
0 Kudos
Message 8 of 8
(4,737 Views)