09-02-2008 10:45 AM
In Measurement and Automation Explorer clicking Help->System information shows me that I have NI-DAQmx 8.7.1f3 installed.
The API calls DAQmxGetSysNIDAQMajorVersion get DAQmxGetSysNIDAQMinorVersion return 8 and 7 respectively, but I have not been able to find a call that returns the 1f3.
Anyone know how to get this programmatically?
Thanks in advance.
09-03-2008 05:52 PM
Hello sradbil,
Thanks for your post and questions about the DAQmx driver!
I see that you are using functions to get the major and minor version of the DAQmx driver on your PC. Unfortunately there are not any functions specifically for this information to be returned. To be honest I have never had to get this information pragmatically because it is in MAX. So the information is located in the driver somewhere so there could perhaps be a way to parse a file for the information. Is this information a necessity for your application as it may take me some time to figure out how exactly to get the information pragmatically. Let us know if this addresses your initial concerns.
Cheers!
Corby_B
http://www.ni.com/support
09-04-2008 07:33 AM
Hi Corby_B,
The problem is that my application, which is used by many people across the globe, has diagnostic output that tells me that it's working with 8.7 when it is really 8.7.1f3.
It would be preferable if the diagnostics could give the actual and complete information, but I don't think that finding and parsing a file is the way we would want to use this at this time.
As you point out, MAX is getting this information, which means there probably is a programmatic way to obtain it.
I had hoped that a post to this forum would point out that I had missed the DAQmx API call that already existed and maybe was just not documented.
If you have any pointers on how to get that "1f3" I'd be glad to know them.
In any event, many thanks for the reply.
09-04-2008 03:17 PM - edited 09-04-2008 03:19 PM
HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-DAQmx\CurrentVersion\Version is the registry entry that contains the exact version of DAQmx. Just read this registry entry, and your app should be good to go. This won't work on Linux, though.
However, you need to test the case where the registry key is not there. Since this is not part of the DAQmx API, NI is free to move around the key as they like....
09-04-2008 03:20 PM
The REGISTRY! Yes of course. Great tip.
Many thanks.
08-07-2009
03:53 PM
- last edited on
06-17-2024
09:29 AM
by
Content Cleaner
DAQmx 9.0 adds the DAQmxGetSysNIDAQUpdateVersion() property. This will return U in M.m.Uf2.
Cheers,
Andrew S