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

20

VISA in LabVIEW

This chapter is an overview of VISA in LabVIEW. It explains the basic concepts involved in programming instruments with VISA and gives examples demonstrating simple VISA concepts.

What Is VISA?

VISA is a standard I/O Application Programming Interface (API)

for instrumentation programming. VISA can control VXI, GPIB, PXI, or serial instruments, making the appropriate driver calls depending on the type of instrument being used.

Types of Calls: Message-Based Communication versus Register-Based Communication

GPIB, serial, and some VXI instruments use message-based communication. Message-based instruments are programmed with high-level ASCII character strings. The instrument has a local processor that parses the command strings and sets the appropriate register bits to perform the desired functions. Message-based instruments are easy to program. To make things easier, SCPI standardizes the ASCII command strings used to program any instrument. All SCPI instruments with the defined function are programmed with the same commands. Instead of learning different command messages for each type of instrument from each manufacturer, you need to learn only one command set. The most common message-based functions are VISA Read, VISA Write, VISA Assert Trigger, VISA Clear, and VISA Read STB.

PXI and many VXI instruments use register-based communication. Register-based instruments are programmed at a low level using binary information that is directly written to the instrument control registers. Speed is the advantage of this type of communication because the instrument no longer needs to parse the command strings and convert the information to register level programming. Register-based instruments communicate literally at the level of direct hardware manipulation. The most common register-based functions are VISA In, VISA Out, VISA Move In, and VISA Move Out.

© National Instruments Corporation

20-1

LabVIEW Measurements Manual

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