10-28-2010 05:15 PM
Basically I need to read, programmatically, the version of the installed NI-RFSG driver. The help for NI RF Signal Generators talks about this property - NIRFSG_ATTR_SPECIFIC_DRIVER_REVISION. However, I can't find the proper way to read it. Do I have to use the standard NI-RFSG property get method or I can do this without obtaining a handle to a generator?
Thanks so much,
-Ilya.
Solved! Go to Solution.
10-30-2010 10:06 AM
Ilya,
To use the property nodes or functions included with the RFSG driver to pull the driver version information programatically, you will need to obtain a handle to a generator.
If you need a way to check the driver version programatically without obtaining the handle, I would recommend looking into querying the Windows registry information. The example code posted on our community here: Determine the Current VISA Version Programmatically, shows how to do this for VISA, and it looks like this should be possible for our other drivers as well.
Thank You,
Eric K
Applications Engineering
National Instruments
10-30-2010 08:47 PM
Hi Eric:
Though the way you popose will do the job, but it is kind of roundabout way of doing this. Seriously. What will happen if the registry name changes or something like that?
On top of this the DAQmx has the API to do just that - get the version of NI-DAQmx driver. I though it would be logical for all other NI drivers to support this.
How does NI MAX get the version information? From the registry?
-Ilya.
11-01-2010 06:08 PM - edited 11-01-2010 06:10 PM
Hi Ilya,
The way Eric described is for getting the driver information without a handle to the generator. With a handle to the generator, you just use a get property, like you described in your first post. The DAQmx and RFSA drivers are not architected in the exact same way so functionality might not be exactly one-for-one.