Daqadcrdscann – Measurement Computing TempBook rev.3.0 User Manual
Page 133

TempBook User’s Manual
daqCommand Reference (Enhanced API) 11-9
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)
Parameters
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 end of chapter).
flags
Channel configuration flags in the form of a bit mask.
Returns
DerrInvGain
- Invalid gain
DerrInvChan
-Invalid channel
DerrInvTrigSource
- Invalid trigger
DerrInvLevel
- Invalid Level
DerrFIFOFull
-Buffer Overrun
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqAdcRd, daqAdcRdN, daqAdcRdScan, daqAdcSetClock, daqAdcSetTrig
Program References
None
Used With
All devices
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.