Specifying a Specific Instrument in an IVI Instrument Driver for Family of Instruments Primary Software: Instrument Drivers/IVI>>IVI Driver TemplatesPrimary 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=1You 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:6652AAfter 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 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
