Daqadcrdscan – Measurement Computing TempBook rev.3.0 User Manual
Page 132

11-8 daqCommand Reference (Enhanced API)
TempBook User’s Manual
daqAdcRdScan
DLL Function
daqAdcRdScan(DaqHandleT handle, DWORD startChan, DWORD endChan, PWORD buf,
DaqAdcGain gain, DWORD flags);
C
daqAdcRdScan(DaqHandleT handle, DWORD startChan, DWORD endChan, PWORD buf,
DaqAdcGain gain, DWORD flags);
Visual BASIC
VBdaqAdcRdScanN&(ByVal handle&, ByVal startChan&, ByVal endChan&, buf%(), ByVal
scanCount&, ByVal triggerSource&, ByVal rising&, ByVal level%, ByVal freq!,
ByVal gain&, ByVal flags&)
Delphi
daqAdcRdScanN(handle:DaqHandleT; startChan:DWORD; endChan:DWORD; buf:PWORD;
scanCount:DWORD; triggerSource:DaqAdcTriggerSource; rising:longbool;
level:WORD; freq:single; const gain:DaqAdcGain; flags:DWORD)
Parameters
handle
Handle to the device from which the ADC scan is to be acquired
startChan
The starting channel of the scan group
endChan
The ending channel of the scan group
buf
An array where the A/D scans will be placed
gain
The channel gain
flags
Channel configuration flags in the form of a bit mask.
Returns
DerrInvGain
- Invalid gain
DerrInvChan
-Invalid channel
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqAdcRdNScan, daqAdcSetMux, daqAdcSetClock, daqAdcSetTrig
Program References
DACEX.PAS (Delphi)
Used With
All devices
daqAdcRdScan
reads a single sample from multiple channels. This function will use a software
trigger to immediately trigger and acquire 1 scan consisting of each channel, starting with
startChan
and ending with endChan. The gain setting will be applied to all channels. See
ADC Flags Definition table for channel flags definitions.