National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference SCAN_Op
NI-DAQ FRM for PC Compatibles 2-296
©
National Instruments Corporation
SCAN_Op
Format
status = SCAN_Op (deviceNumber, numChans, chans, gains, buffer, count, sampleRate,
scanRate)
Purpose
Performs a synchronous, multiple-channel scanned data acquisition operation. SCAN_Op does
not return until NI-DAQ has acquired all the data or an acquisition error has occurred (MIO,
AI, and DSA devices only).
Parameters
Input
Output
Parameter Discussion
numChans is the number of channels listed in the scan sequence.
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 n for PCI-6110E, PCI-6111E, and DSA devices where n is the number
of physical channels onboard.
Name Type Description
deviceNumber i16 assigned by configuration utility
numChans i16 number of channels
chans [i16] list of channels
gains [i16] list of gain settings
count u32 number of samples
sampleRate f64 desired sample rate in pts/s
scanRate f64 desired scan rate in scans/s
Name Type Description
buffer [i16] contains the acquired data