Daqadcgetscan – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 67

daqAdcGetScan
Also See: daqAdcSetScan, daqAdcSetMux
Format
daqAdcGetScan(handle, channels, gains, flags, chanCount)
Purpose
daqAdcGetScan
reads the current scan group, which consists of all configured channels.
Parameter Summary
Parameter Type
Description
handle DaqHandleT
Handle to the device from which the current scan configuration will be
retrieved
channels PDWORD
A pointer to an array which holds up to 512 channel numbers, or 0 if the
channel information is not desired
gains DaqAdcGain
A pointer to an array which holds up to 512 gain values, or 0 if the
channel gain information is not desired
flags PDWORD A pointer to channel configuration flags in the form of a bit mask
chanCount PDWORD
A pointer to a variable which will hold the number of values returned in
the channels and gains arrays
Parameter Values
handle:
obtained from the daqOpen parameter
channels:
must be a valid pointer to an array which can hold up to chanCount channel numbers
(4 bytes/channel); valid values for channel numbers range from 0 to 512
gains:
must be a valid pointer to an array which can hold up to chanCount gain definitions
(4 bytes/gain); see ADC Gain Definition table for gains valules
flags:
must be a valid pointer to an array which can hold up to chanCount flag configurations
(4 bytes/flag); see ADC Flag Definition table for flags values
chanCount:
defined by channel configuration; see daqAdcSetScan for details
Returns
DerrNoError
No error
Function Usage
The returned parameter settings directly correspond to those set using the daqAdcSetScan function. For
further description of these parameters, refer to daqAdcSetScan.
Flags may have the DafSSHHold bit set.
Programmer’s Manual
908594
Daq API Command Reference 4.2-11