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

Скачать
Страница из 554
Chapter 2
Function Reference — WFM_from_Disk
©
 National Instruments Corporation
2-417
NI-DAQ FRM for PC Compatibles
WFM_from_Disk
Format
status = WFM_from_Disk (deviceNumber, numChans, chanVect, fileName, startPt, endPt,
iterations, rate)
Purpose
Assigns a disk file to one or more analog output channels, selects the rate and the number of 
times the data in the file is to be generated, and starts the generation. 
WFM_from_Disk
 always 
waits for completion before returning, unless you call 
Timeout_Config
.
Parameters
Input   
Parameter Discussion
numChans indicates the number of analog output channels specified in the array chanVect.
chanVect is the array of channel numbers indicating which analog output channels are to 
receive output data from the file.
Channel number range:
0 or 1 for most devices.
0 through 5 for AT-AO-6.
0 through 9 for AT-AO-10.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
numChans
i16
number of analog output channels
chanVect
[i16]
channel numbers
fileName
STR
name of the data file containing the waveform data
startPt
u32
place in a file where waveform generation is to 
begin
endPt
u32
place in a file where waveform generation is to 
end
iterations
u32
number of times generated
rate
f64
desired rate in points per second