
daqAdcSetScan
Also See: daqAdcGetScan, daqAdcSetMux
Format
daqAdcSetScan(handle, channels, gains, flags, chanCount)
Purpose
daqAdcSetScan configures an acquisition scan group consisting of multiple channels.
Parameter Summary
Parameter Type Description
handle DaqHandleT
Handle to the device for which acquisition scan group will be
configured
channels PDWORD
An array of channel numbers
gains DaqAdcGain
Pointer to an array of gain values
flags PDWORD
Pointer to an array of channel configuration flags in bit mask form.
chanCount DWORD
The number of elements in the channels, gains and flags arrays
Parameter Values
handle: obtained from the daqOpen function
channels: must be a valid pointer to an array of valid channel numbers for the device; valid values for
channel numbers vary per device. See the parameter type definitions table below. Consult
your hardware manual if needed.
gains: see table below
flags: see table below
chanCount: valid values vary in range, according to product type.
Parameter Type Definitions
flags
Definition Description Valid Channel Values
Analog/High Speed Digital Flag
DafAnalog
Channel is Analog on P1 Analog P1 Channels (0-271)
DafHighSpeedDigital
Channel is HS Digital I/O on P3 Digital P3 HS Chan (0)
Data Representation Flags (DaqBook/2000 Series; 1000, 2000, 3000 Series DaqBoards; DaqLab/2000 Series,
DaqScan/2000 Series and cPCI DaqBoard/2000c Series)
DafUnsigned
Channel ADC data is represented as a 16-bit unsigned
integer.
Any channel
DafSigned
Channel ADC data is represented as a 16-bit signed integer. Any channel
Unipolar/Bipolar Flag (DaqBook/2000 Series; 1000, 2000, 3000 Series DaqBoards; DaqLab/2000 Series,
DaqScan/2000 Series and cPCI DaqBoard/2000c Series)
DafUnipolar
Channel voltage range is from 0 to +2x(Device
Max/Gain)V
Analog P1 Channels (0-271)
DafBipolar
Channel voltage range is -(Device Max/Gain)V to
+(Device Max/Gain)V
Analog P1 Channels (0-271)
Single Ended/Differential Flag
DafSingleEnded
Channel is single ended inputs Analog P1 (0-271)
DafDifferential
Channel is differential inputs Analog P1 (0-7) (Main unit only)
P2 Digital Channel Flags (DaqBook/2000 Series; 1000, 2000, 3000 Series DaqBoards; DaqLab/2000 Series,
DaqScan/2000 Series and cPCI DaqBoard/2000c Series)
DafP2Local8
Channel is Digital on the Local P2 Local Digital P2 Channels (0-4)
DafP2Exp8
Channel is Digital on an Expansion P2 N/A
P3 Digital Channel Flags (DaqBook/2000 Series, DaqBoard/2000 Series, DaqLab/2000 Series, DaqScan/2000 Series
and cPCI DaqBoard/2000c Series)
DafP3Local16
Channel is HS Digital I/O P3 Digital 16-bit P3 Channel (0)
Counter Type Flags (DaqBook/2000 Series; 1000, 2000, 3000 Series DaqBoards; DaqLab/2000 Series,
DaqScan/2000 Series and cPCI DaqBoard/2000c Series)
DafCtrPulse
P3 Counter Channel will Tally Pulses Counter Channels (0-3)
DafCtrTotalize
P3 Counter Channel will Return Frequency Counter Channels (0-3)
Counter Edge Flags
DafCtrRisingEdge
P3 Counter Channel will Count on Rising Edge Counter Channels (0-3)
DafCtrFallingEdge
P3 Counter Channel will Count on Falling Edge Counter Channels (0-3)
4.2-36 Daq API Command Reference 988594 Programmer’s Manual
Comentarios a estos manuales