National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — DAQ_to_Disk
NI-DAQ FRM for PC Compatibles
2-142
©
 National Instruments Corporation
DAQ_to_Disk
Format
status = DAQ_to_Disk (deviceNumber, chan, gain, filename, count, sampleRate, concat)
Purpose
Performs a synchronous, single-channel DAQ operation and saves the acquired data in a disk 
file. 
DAQ_to_Disk
 does not return until NI-DAQ has acquired and saved all the data or an 
acquisition error has occurred.
Parameters
Input   
Parameter Discussion
chan is the analog input channel number. If you are using SCXI, you must use the appropriate 
analog input channel on the DAQ device that corresponds to the SCXI channel you want. 
Select the SCXI channel using 
SCXI_Single_Chan_Setup
before calling this function. Refer to the NI-DAQ User Manual for PC Compatibles for more 
information on SCXI channel assignments.
Range:
See Table B-1 in Appendix B
.
gain is the gain setting to be used for that channel. This gain setting applies only to the DAQ 
device; if SCXI is used, you must establish any gain at the SCXI module either by setting 
jumpers on the module or by calling 
SCXI_Set_Gain
. Refer to Appendix B, 
, for valid gain settings. If you use invalid 
gain settings, NI-DAQ returns an error. NI-DAQ ignores gain for 516 and LPM devices and 
the DAQCard-500/700.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
chan
i16
analog input channel number
gain
i16
gain setting
filename
STR
name of data file to be created
count
u32
number of samples to be acquired
sampleRate
f64
rate in units of pts/s
concat
i16
enables concatenation to an existing file