Specifying a Specific Instrument in IVI Instrument Driver

Updated May 15, 2018

Reported In

Software

  • LabVIEW
  • LabWindows/CVI

Issue Details

I downloaded an IVI instrument driver from the National Instruments Instrument Driver Network.  I am using this driver to communicate with an instrument using LabVIEW. However, this driver is built for several instruments. The list of instruments it controls has different properties, so the driver behaves differently for each one. How do I tell the driver which instrument I am controlling?

Solution

1. VI instrument drivers have a VI called Initialize with Options. One of the parameters is Options String. The default of Options String is the following:

Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1

2. You can add the instrument model you want to control to this list. For example, if you downloaded the hp66xxa IVI driver, and you want to control the 6652A, you can change this string to the following:

Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1,DriverSetup=Model:6652A

3. After you make this change, the driver treats the instrument as the 6652A and recognizes all its functionality.

 

Additional Information

Refer to the linked NI Developer Zone tutorial for How to Use an Instrument Driver in LabVIEW.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful