Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 71

Returns
DerrFIFOFull
Buffer
overrun
DerrInvGain
Invalid
gain
DerrIncChan
Invalid
channel
DerrInvTrigSource
Invalid
trigger
DerrInvLevel
Invalid
level
For more details on error messages, please refer to the Daq Error Table.
Function Usage
This function will:
Configure the pacer clock
Configure the channel with the specified gain parameter
Configure the channel options with the channel flags specified
Arm the trigger
Acquire count scans from the specified A/D channel
The freq parameter can have a range of values between 0.2 mHz and 1.0 MHz, but they are dependant on the
device being used--see the discussion of actual scan rates in the entry for daqAdcSetRate.
Prototypes
C/C++
daqAdcRdN(DaqHandleT handle, DWORD chan, PWORD buf, DWORD scanCount,
DaqAdcTriggerSource triggerSource, BOOL rising, WORD level, FLOAT freq,
DaqAdcGain gain, DWORD flags);
Visual BASIC
VBdaqAdcRdN&(ByVal handle&, ByVal chan&, 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-15