beautypg.com

Daqadcrdscann – Measurement Computing Personal Daq rev.6.0 User Manual

Page 140

background image

B-8 API Commands

Appendix B,

887095

Personal Daq User’s Manual

daqAdcRdScanN

DLL Function

daqAdcRdScanN(DaqHandleT handle, DWORD startChan, DWORD endChan, PVOID buf,
DWORD scanCount, daqAdcTriggerSource triggerSource, BOOL rising, FLOAT level, FLOAT

freq, daqAdcGain gain, DWORD flags);

C

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

freq, DaqAdcGain gain, DWORD flags);

Visual BASIC

VBdaqAdcRdScanNSingle&(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:pointer;

scanCount:DWORD; triggerSource:daqAdcTriggerSource; rising:longbool; level:single;
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 appendix)

endchan

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

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 appendix)

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 appendix).

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 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.

This manual is related to the following products: