Справочник Пользователя для National Instruments Welding System 321645c-01

Скачать
Страница из 554
Chapter 2
Function Reference — SCAN_Demux
NI-DAQ FRM for PC Compatibles
2-294
©
 National Instruments Corporation
SCAN_Demux 
Format
status = SCAN_Demux (buffer, count, numChans, numMuxBrds)
Purpose
Rearranges, or demultiplexes, data acquired by a 
SCAN
 operation into row-major order 
(that is, each row of the array holding the data corresponds to a scanned channel) for easier 
access by C applications. 
SCAN_Demux
 does not need to be called by BASIC applications to 
rearrange two-dimensional arrays because these arrays are accessed in column-major order.
Parameters
Input 
Input/Output 
Parameter Discussion
buffer is an integer array of A/D conversion samples returned by a 
SCAN
 operation.
count is the integer length of buffer (that is, the number of samples contained in buffer).
numChans is the number of channels that NI-DAQ scanned when the data was created. If you 
used SCXI to acquire the data, numChans should be the total number of channels sampled 
during one scan. Otherwise, this parameter is the same as the value of numChans selected in 
SCAN_Setup
Lab_ISCAN_Start
SCAN_Op
, or 
Lab_ISCAN_Op
.
Range:
1 through 16.
1 through 512 for the E Series devices, AT-MIO-16F-5, AT-MIO-64F-5, and 
AT-MIO-16X.
1 through the physical number of AI channels for PCI-6110E and PCI-6111E 
(4 or 2).
Name
Type
Description
count
u32
number of samples
numChans
i16
number of channels that were scanned
numMuxBrds
i16
number of AMUX-64T devices used
Name
Type
Description
buffer
[i16]
conversion samples returned