National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_SCAN_Setup
NI-DAQ FRM for PC Compatibles 2-188
©
National Instruments Corporation
DIG_SCAN_Setup
Format
status = DIG_SCAN_Setup (deviceNumber, group, groupSize, portList, dir)
Purpose
Configures the specified group for port assignment, direction (input or output), and size.
Parameters
Input
Parameter Discussion
group is the group to be configured.
Range: 1 or 2 for most devices.
1 through 8 for the DIO-96.
groupSize selects the number of 8-bit ports in the group.
Range: 0 through 2 for most devices.
0 through 8 for the DIO-96.
Note
Zero is to unassign any ports previously assigned to group.
portList is the list of ports in group. The order of the ports in the list determines how NI-DAQ
interleaves data in your buffer when you call
DIG_Block_In or DIG_Block_Out. The last
port in the list determines the port whose handshaking signal lines NI-DAQ uses to
communicate with the external device and to generate hardware interrupt.
Range: 0 or 1 for most devices.
2 or 3 for the AT-MIO-16D and AT-MIO-16DE-10.
0, 1, 3, 4, 6, 7, 9, or 10 for the DIO-96.
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group to be configured
groupSize i16 number of 8-bit ports
portList [i16] list of ports
dir i16 direction, input, or output