User manual

Chapter 3 Software Overview
NI-DAQ User Manual for PC Compatibles 3-70 ni.com
Note
The DIO-32F, 653X, DIO-24, 6025E devices, AT-MIO-16DE-10, DIO-96, and Lab
and 1200 devices all can perform group block operations. However, the DIO-24, 6025E
devices, AT-MIO-16DE-10, DIO-96, and Lab and 1200 devices have special wiring
requirements for groups larger than one port. The wiring for both the input and output cases
for these devices is explained in the
DIG_SCAN_Setup
function description. No additional
wiring is necessary for the DIO-32F and 653X devices.
The first step for a group block I/O application is to call
DIG_Grp_Config
or
DIG_SCAN_Setup
to configure individual ports as a group. Call
DIG_Grp_Config
if you have a DIO-32F, 653X, PCI-6115, or a PCI-6120
device. Call
DIG_SCAN_Setup
for all other devices. The DIO-32F is
restricted to group sizes of two and four ports for block I/O.
If you are using a DIO-32F or 653X device, you can alter the handshaking
mode of the group by calling
DIG_Grp_Mode.
For the DIO-32F, 653X,
PCI-6115, and PCI-6120, you can perform digital pattern generation by
calling
DIG_Block_PG_Config
, as shown in Figure 3-24. Pattern
generationissimplyreadinginorwritingoutdigitaldataatafixedrate.
This is the digital equivalent of analog waveform generation. To enable
pattern generation, call
DIG_Block_PG_Config
as shown in Figure 3-24.
You cannot handshake with pattern generation, so do not connect any
handshaking lines. Refer to the explanation of pattern generation later
in this chapter for more information.
The next step for your application, as illustrated in Figure , is to call
DIG_Block_In
or
DIG_Block_Out
to start the data transfer.
After you start the operation, you can call
DIG_Block_Check
to get the
current progress of the transfer. If the block operation completes prior to
a
DIG_Block_Check
call,
DIG_Block_Check
automatically calls
DIG_Block_Clear
, which performs cleanup work.
The final step of a digital block operation is to call
DIG_Block_Clear
.
DIG_Block_Clear
performs the necessary cleanup work after a
digital block operation. You must call this function explicitly if
DIG_Block_Check
did not already call
DIG_Block_Clear
.
Note DIG_Block_Clear
halts any ongoing block operation. Therefore, call
DIG_Block_Clear
only if you are certain the block operation has completed or
you want to stop the current operation.