beautypg.com

Daqadcrdscann – Measurement Computing WaveBook rev.3.0 User Manual

Page 204

background image

D-8 daqX API - Command Reference,

6-24-99

WaveBook User’s Manual

daqAdcRdScanN

DLL Function

daqAdcRdScanN(DaqHandleT handle, DWORD startChan, DWORD endChan, PWORD buf,
DWORD scanCount, DaqAdcTriggerSource triggerSource, BOOL rising, WORD level, FLOAT

freq, DaqAdcGain gain, DWORD flags);

C

daqAdcRdScanN(DaqHandleT handle, DWORD startChan, DWORD endChan, PWORD buf,
DWORD scanCount, DaqAdcTriggerSource triggerSource, BOOL rising, WORD level, FLOAT

freq, 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 ADC scans are to be acquired

startchan

The starting channel of the scan group (see table at end of chapter)

endchan

The ending channel of the scan group (see table at end of chapter)

buf

An array where the A/D scans will be placed

scanCount

The number of scans to be read
Valid values: 1 - 65536

triggerSource

The trigger source (see table at end of chapter)

rising

Boolean flag to indicate the rising or falling edge for the trigger source

level

The trigger level if an analog trigger is specified
Valid values: 0 -4095

freq

The sampling frequency in Hz
Valid values: 100000.0 - 0.0002

gain

The channel gain (See tables at the end of this chapter).

Parameters

flags

Channel configuration flags in the form of a bit mask.

DerrInvGain

Invalid gain

DerrInvChan

Invalid channel

DerrInvTrigSource

Invalid trigger

DerrInvLevel

Invalid Level

DerrFIFOFull

Buffer Overrun

Returns

DerrNoError

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

See Also

daqAdcRd, daqAdcRdN, daqAdcRdScan, daqAdcSetClock, daqAdcSetTrig

Program References

None

Used With

All devices

Description

daqAdcRdScanN

reads multiple scans from multiple A/D channels. This function will configure the pacer clock, arm the trigger and

acquire count scans consisting of each channel, starting with startChan and ending with endChan. The gain setting will be applied to
all channels. The freq parameter is used to set the acquisition frequency. See ADC Flags Definition table for channel flags parameter
definition.