Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 3 out of 5     Rate this Document

Specifying a Specific Instrument in an IVI Instrument Driver for Family of Instruments

Primary Software: Instrument Drivers/IVI>>IVI Driver Templates
Primary Software Version: 2.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
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:
IVI 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

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

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

Refer to the linked NI Developer Zone tutorial for more information on using IVI drivers in LabVIEW.

Related Links:
NI Developer Zone: Using IVI Drivers in LabVIEW

Instrument Driver Network

Attachments:





Report Date: 05/10/2002
Last Updated: 10/09/2007
Document ID: 2L9CCRTL

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit