Omega OMB-DAQ-54 User Manual page 139

Usb data acquisition modules
Table of Contents

Advertisement

DLL Function
daqAdcRdN(DaqHandleT handle, DWORD chan, PVOID buf, DWORD scanCount,
daqAdcTriggerSource triggerSource, BOOL rising, FLOAT level, FLOAT freq,
daqAdcGain gain, DWORD flags);
C
daqAdcRdN(DaqHandleT handle, DWORD chan, PVOID buf, DWORD scanCount,
DaqAdcTriggerSource triggerSource, BOOL rising, FLOAT level, FLOAT freq,
DaqAdcGain gain, DWORD flags);
VBdaqAdcRdNSingle&(ByVal handle&, ByVal chan&, buf!(), ByVal ScanCount&, ByVal
Visual BASIC
triggerSource&, ByVal rising&, ByVal level!, ByVal Freq!, ByVal gain&, ByVal
flags&)"
Delphi
daqAdcRdN(handle:DaqHandleT; chan:DWORD; buf:pointer; scanCount:DWORD;
triggerSource:daqAdcTriggerSource; rising:longbool; level:single; freq:single;
const gain:daqAdcGain; flags:DWORD)
Handle
Parameters
Chan
Buf
ScanCount
TriggerSource
Rising
Level
Freq
Gain
Flags
Returns
DerrFIFOFull
DerrInvGain
DerrIncChan
DerrInvTrigSource
DerrInvLevel
See Also
daqAdcSetFreq, daqAdcSetMux, daqAdcSetClock, daqAdcSetTrig
Program References
None
All devices
Used With
Description
daqAdcRdN is used to take multiple scans from a single A/D channel. This function will:
Configure the pacer clock
Configure all channels with the specified gain parameter
Configure all channel options with the channel flags specified
Arm the trigger
Acquire count scans from the specified A/D channel
See ADC Flags Definition table (in ADC Miscellaneous Definitions) for channel flags parameter definition.
B-6
API Commands
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
daqAdcRdN
Handle to the device for which the ADC channel samples are to be acquired
A single channel number
An array where the A/D scans will be returned
The number of scans to be taken; Valid values: 1 - 32767
The trigger source
Boolean flag to indicate the rising or falling edge for the trigger source
The trigger level if an analog trigger is specified; Valid values: 0 -4095
The sampling frequency in Hz (100000.0 to 0.0002)
The channel gain
Channel configuration flags in the form of a bit mask
Buffer overrun
Invalid gain
Invalid channel
Invalid trigger
Invalid level
Appendix B,
887095
Personal Daq User's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-daq-55Omb-daq-56

Table of Contents