Download LabVIEW Data Acquisition Basics Manual

Transcript
Chapter 17
Shaking Hands with a Digital Partner
For DAQ devices other than the DIO-32 devices, you can use a VI similar
to the one above to output digital data. The main difference is that
handshake source must be external (2). Alternatively, you can use an
Advanced Digital VI, DIO Buffer Control, instead of the DIO Start VI, as
shown in Figure 17-6. The DIO Start VI contains Digital Clock Config and
Digital Mode Config VIs that are useful with DIO-32 devices. You do not
need to use the handshake source and clock frequency inputs, because the
handshaking signal source is always external.
Figure 17-6. Buffered Output Using DAQ Devices (Other Than DIO-32 Series Devices)
Reading information is similar to writing data when using digital
handshaking. In the example shown in Figure 17-7, the VI is reading data
into the DIO-32 devices while using external handshaking. For the DIO-32
devices, the DIO Config VI can set or change the handshaking mode, for
instance, active-high or active-low request signals.
Figure 17-7. Buffered Input Using DIO-32 Devices
LabVIEW Data Acquisition Basics Manual
17-8
www.natinst.com