National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference SCAN_to_Disk
©
National Instruments Corporation 2-315 NI-DAQ FRM for PC Compatibles
SCAN_to_Disk
Format
status = SCAN_to_Disk (deviceNumber, numChans, chans, gains, filename, count, sampleRate,
scanRate, concat)
Purpose
Performs a synchronous, multiple-channel scanned data acquisition operation and
simultaneously saves the acquired data in a disk file.
SCAN_to_Disk does not return until
all the data has been acquired and saved or an acquisition error has occurred (MIO and AI
devices only).
Parameters
Input
Parameter Discussion
numChans is the number of channels listed in chansArray.
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
filename STR name of the data file
count u32 number of samples
sampleRate f64 desired sample rate in pts/s
scanRate f64 desired scan rate in scans/s
concat i16 enables concatenation of existing file