National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Grp_Config
NI-DAQ FRM for PC Compatibles 2-164
©
National Instruments Corporation
DIG_Grp_Config
Format
status = DIG_Grp_Config (deviceNumber, group, groupSize, port, 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 the DIO 6533 devices and the AT-DIO-32F.
groupSize indicates the size of the group. The following values are permitted for groupSize:
0: Unassign any ports previously assigned to group.
1: One port assigned (8-bit group) to group.
2: Two ports assigned (16-bit group) to group.
4: Four ports assigned (32-bit group) to group.
Note
For the DIO-32F, you must use port = 0 or 1 if group = 1, and port = 2 or 3 if
group = 2.
Note
For the DIO-32F, block operations are not allowed for groups of size =1. For the
DIO 6533 (DIO-32HS), you can use block operations for groups of size 1 if you
set group = 1 and port = 0, or group = 2 and port = 2.
port indicates the digital I/O port or ports assigned to the group. The assignments made
depend on the values of port and of groupSize:
groupSize = 1 port = 0 assigns port 0 (A).
port = 1 assigns port 1 (B).
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group
groupSize i16 size of the group
port i16 digital I/O port assigned to the group
dir i16 input or output