beautypg.com

Daqadcrdscan – Measurement Computing WaveBook rev.3.0 User Manual

Page 203

background image

WaveBook User’s Manual,

6-24-99

daqX API - Command Reference D-7

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)

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

Parameters

flags

Channel configuration flags in the form of a bit mask.

DerrInvGain

Invalid gain

DerrInvChan

Invalid channel

Returns

DerrNoError

No error (see the API Error Codes table at the end of this chapter).

See Also

daqAdcRdNScan, daqAdcSetMux, daqAdcSetClock, daqAdcSetTrig

Program References

DACEX.PAS (Delphi)

Used With

All devices

Description

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.