DAQ-PACK Series Modules User Guide
11
Chapter 4: Programming
The driver software provided with the board uses a 32-bit .dll front end compatible with any
Windows programming language. Samples provided in Borland C++Builder, Borland Delphi,
Microsoft Visual Basic, and Microsoft Visual C++ demonstrate the use of the driver.
The easiest way to begin taking analog input data is using the following API call, but often
can’t achieve more than several hundred Hz, slower depending on options.
unsigned long
ADC_GetScanV
( - This simple function takes one scan of A/D data and
converts it to voltage. It also averages oversamples for each channel. The array
must contain one entry per A/D channel on the board, though only entries [start
channel] through [end channel] are altered. On boards with A/D that don't support
ADC_SetConfig(), it scans all channels, without oversampling.
unsigned long DeviceIndex - number from 0-31 indicating from which device you wish to get a
scan of data
double *pBuf - a pointer to the first of an array of double precision IEEE floating point
numbers which will each receive the value read from one channel
)
For full programming details see the USB Software Reference Manual installed on your
system along with the product software package.