beautypg.com

Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 75

background image

Returns

DerrInvGain

Invalid

gain

DerrInvChan

Invalid

channel

DerrInvTrigSource

Invalid trigger

DerrInvLevel

Invalid

level

DerrFIFOFull

Buffer

overrun

DerrNoError

No

error

For more details on error messages, please refer to the Daq Error Table.

Function Usage

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 and flags settings will be applied
to all channels.

The freq parameter is used to set the acquisition frequency. Its valid values can range from 0.2 mHz to 1.0
MHz, but they are dependent on the device being used--see the discussion of actual scan rates in the entry for
daqAdcSetRate

.

Prototypes

C/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&)

Program References

None

Programmer’s Manual

908594

Daq API Command Reference 4.2-19