03-06-2015 06:00 PM
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
03-08-2015 11:23 AM
What's wrong with just looking in MAX?
03-09-2015 11:29 AM
Hi crossrulz -
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.
03-09-2015 04:13 PM - edited 03-09-2015 04:18 PM
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):
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,
03-10-2015 10:15 PM
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...
03-11-2015 12:00 PM
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,
03-11-2015 12:21 PM
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!
03-11-2015 12:25 PM