LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the way to read NIRFSG_ATTR_SPECIFIC_DRIVER_REVISION

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(2,884 Views)
Solution
Accepted by topic author ilyak

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

0 Kudos
Message 2 of 4
(2,850 Views)

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.

0 Kudos
Message 3 of 4
(2,841 Views)

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.

Regards,
Jim Schwartz
0 Kudos
Message 4 of 4
(2,813 Views)