National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — SCAN_Sequence_Setup
NI-DAQ FRM for PC Compatibles
2-304
©
 National Instruments Corporation
SCAN_Sequence_Setup
Format
status = SCAN_Sequence_Setup (device, numChans, chanVector, gainVector,
scanRateDivisorVector, scansPerSequence,
samplesPerSequence)
Purpose
Initializes the device for a multirate scanned data acquisition operation. Initialization includes 
selecting the channels to be scanned, assigning gains to these channels and assigning different 
sampling rates to each channel by dividing down the base scan rate.
Parameters
Input
Output
Parameter Discussion
numChans is the number of entries in the three input vectors. All three input vectors must 
have the same number of entries.
chanVector contains the onboard channels that will be scanned. A channel cannot be 
listed more the once. Refer to Appendix B, 
, for valid channel settings. 
Name
Type
Description
device
i16
assigned by configuration utility
numChans
i16
number of channels
chanVector
[i16]
channel scan sequence
gainVector
[i16]
gain setting to be used for each channel 
in chanVector
scanRateDivisorVector
[i16]
rate divisor for each channel
Name
Type
Description
scansPerSequence
i16
the number of scans in a scan sequence
samplesPerSequence
i16
the number of samples in a scan sequence