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

Chapter 8

Digital I/O

8255 Family

The examples Read from 1 Dig Port(8255) VI and Write to 1 Dig Port(8255) VI show how to use the Advanced Digital I/O VIs to read from or write to one digital 8-bit port. The examples Read from 2 Dig Ports(8255) VI and Write to 2 Dig Ports(8255) VI show how to use the Advanced Digital I/O VIs to read from or write to two separate 8-bit ports. The examples Read from Digital Port(8255) VI and Write to Digital Port(8255) VI show how to use the Advanced Digital I/O VIs to read from or write to one digital port where the port width can be 8, 16, 24, or 32 bits. Refer to the VIs in the examples\daq\digio.llb for examples of how to use the Advanced Digital I/O VIs.

Handshaking

If you want to pass a digital pattern after receiving a digital pulse, you should use strobed (handshaked) digital I/O. Handshaking allows you to synchronize digital data transfer between your DAQ device and instrument. For example, you might want to acquire an image from a scanner. The process involves the following steps:

1.The scanner sends a pulse to your DAQ device after the image has been scanned and it is ready to transfer the data.

2.Your DAQ device reads an 8-, 16-, or 32-bit digital pattern.

3.Your DAQ device then sends a pulse to the scanner to let it know the digital pattern has been read.

4.The scanner sends out another pulse when it is ready to send another digital pattern.

5.After your DAQ device receives this digital pulse, it reads the data.

6.This process repeats until all the data is transferred.

Many DAQ devices support digital handshaking, including the following:

653X family devices

6533 (DIO-32HS) devices

DIO-32F

6534 devices

8255 family devices

6503 (DIO-24) devices

6507/6508 (DIO-96) devices

Lab/1200 Series devices

LabVIEW Measurements Manual

8-6

www.ni.com

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