National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Block_In
©
National Instruments Corporation 2-149 NI-DAQ FRM for PC Compatibles
DIG_Block_In
Format
status = DIG_Block_In (deviceNumber, group, buffer, count)
Purpose
Initiates an asynchronous transfer of data from the specified group to memory.
Parameters
Input
Output
Parameter Discussion
group is the group to be read from.
Range: 1 or 2 for most devices.
1 through 8 for DIO-96.
buffer is an integer array that contains the data obtained by reading the group indicated by
group. For the DIO-32F and DIO 6533 (DIO-32HS), NI-DAQ uses all 16 bits in each buffer
element. Therefore, the size of the array, in bytes, must be at least count multiplied by the
size of group. For all other devices, only the lower 8 bits of each buffer element are used.
Therefore, the size of the array in bytes must be at least twice count multiplied by the size
of group.
count is the number of items (for example, 8-bit items for a group of size 1, 16-bit items for
a group of size 2, and 32-bit items for a group of size 4) to be transferred to the area of
memory specified by buffer from the group indicated by group.
Range: 2 through 2
32
– 1.
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group
count u32 number of items to be transferred
Name Type Description
buffer [i16] data obtained by reading the group