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

Скачать
Страница из 554
Chapter 2
Function Reference — AI_Read_Scan
NI-DAQ FRM for PC Compatibles
2-14
©
 National Instruments Corporation
AI_Read_Scan
Format
status = AI_Read_Scan (AI_Read_Scan (deviceNumber, reading)
Purpose
Returns readings for all analog input channels selected by 
SCAN_Setup
 (E Series devices 
only, with or without the SC-2040 accessory).
Parameters
Input
   
Output
   
Parameter Discussion
reading is an array of readings from each sampled analog input channel. The length of the 
reading array is equal to the number of channels selected in the 
SCAN_Setup
 numChans 
parameter. Range of elements in reading depends on your device A/D converter resolution 
and the unipolar/bipolar selection you made make for a given channel. 
Using This Function
AI_Read_Scan
 samples the analog input channels selected by 
SCAN_Setup
, at half the 
maximum rate permitted by your data acquisition hardware. 
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
Name
Type
Description
reading
[i16]
readings from each sampled analog input channel