Chapter 2
Using Your NI 653X
2-6
ni.com
•
LabVIEW—Use the Easy Digital I/O VI from the following list that is
appropriate for your task:
–
Read from Digital Line VI to read from a single line
–
Write to Digital Line VI to write to a single line
–
Read from Digital Port VI to read from a digital port
–
Write to Digital Port VI to write to a digital port
Set
digital channel
to
4
and
port width
to
4
.
If one control/timing line is used or reserved, and you wish to use some or
all of the remaining lines for I/O, use the Advanced Digital I/O VIs
DIO Port Read VI or DIO Port Write VI. Set the bits in the
line mask
parameter to the lines to use for I/O.
Generating and Receiving Digital Patterns and
Waveforms—Pattern I/O
Using pattern I/O, you can acquire or generate patterns on every rising or
falling edge of a clock signal. The clock signal can be generated internally
by an onboard 32-bit counter set to a user-specified frequency, or the clock
signal can be received from the REQ pin in the I/O connector.
Note
Feed external clocking signals into the PCLK pin for burst-mode handshaking and
into the REQ pin when performing pattern I/O.
Deciding the Width of Data to Transfer
You can choose between a width of 8, 16, or 32 bits. Use the following
table to find the valid combinations of ports and timing controllers based
on the width of data you want to transfer.
Table 2-2.
Port and Timing Controller Combinations
Transfer
Width
Possible Port
Combinations
Timing Controllers
That Can Be Used
8 bits
Port 0 (DIOA<0..7>)
Group 1
Port 2 (DIOC<0..7>)
Group 2