Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx API to get 3rd part of Version informationUsing

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. 

Sherryl Radbil
Data Acquisition Engineer
The MathWorks
0 Kudos
Message 1 of 6
(3,459 Views)

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

0 Kudos
Message 2 of 6
(3,432 Views)

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. 

Sherryl Radbil
Data Acquisition Engineer
The MathWorks
0 Kudos
Message 3 of 6
(3,418 Views)

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....

Message Edited by Tiptop on 09-04-2008 03:19 PM
0 Kudos
Message 4 of 6
(3,407 Views)

The REGISTRY! Yes of course. Great tip.

Many thanks.

 

Sherryl Radbil
Data Acquisition Engineer
The MathWorks
0 Kudos
Message 5 of 6
(3,403 Views)

DAQmx 9.0 adds the DAQmxGetSysNIDAQUpdateVersion() property. This will return U in M.m.Uf2.

 

Cheers, 

Andrew S

Message Edited by stilly32 on 08-07-2009 03:53 PM
0 Kudos
Message 6 of 6
(3,127 Views)