Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
LabVIEW-Measurements.pdf
Скачиваний:
61
Добавлен:
29.05.2015
Размер:
3.37 Mб
Скачать

Chapter 19 Instrument Drivers in LabVIEW

Since IVI drivers are C-based, they have most of the same issues as VXIplug&play drivers. However, they are the best solution if performance, interchangeability, and simulation are paramount. Refer to www.ni.com/ivi for more information about IVI. Refer Application Note 140, Using IVI Drivers in LabVIEW, for more information about using IVI in LabVIEW.

All three kinds of drivers can be found on zone.ni.com/idnet

Inputs and Outputs Common to Instrument Driver VIs

Now you can start using instrument driver VIs to build applications. Just as all instrument drivers share a common set of functions, they also share common inputs and outputs. This section covers these common parameters and how to use them.

Resource Name/Instrument Descriptor

Before you can communicate with an instrument, you need to open a communication link to the instrument with the Initialize Instrument Driver VI. After you are finished communicating with the instrument, you can call the Close Instrument Driver VI, and all references or resources for the instrument are closed. If you do not explicitly call the Close Instrument Driver VI, all references are closed when you close LabVIEW.

When you initialize an instrument, you need to know the Resource Name or Instrument Descriptor.

Resource—VISA Alias or IVI Logical Name

Instrument Descriptor—The exact name and location of a resource having a format:

Interface Type[board index]::Address::INSTR.

For example, GPIB0::2::INSTR is the instrument descriptor when using the first GPIB board to communicate with an instrument at device address 2.

Use Measurement & Automation Explorer to determine what resources and instrument addresses are available. You can specify the VISA Alias for the Resource Name/Instrument Descriptor in the instrument driver VIs. Refer to the Assigning VISA Aliases and IVI Logical Names section in Chapter 3, Installing and Configuring Your Measurement Hardware, for more information about VISA Aliases.

LabVIEW Measurements Manual

19-6

www.ni.com

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]