User`s manual

PCI 703 User Manual Eagle Technology - Data Acquisition
Eagle Technology © Copyright 2001-2004 www.eagledaq.com 27
Parameter Type Description
Sn Unsigned long Board’s serial number
Buf Pointer to a long buffer. Buffer to copy micro voltages too.
BufSize Pointer to an unsigned
long
Size of buffer must be passed or number of samples
requested. The returned value will indicate the number of
actual samples copied to the buffer.
Return Long Error Code
ACTIVEX CALL
Long EDREADX.GetData (plong Buffer, plong Size)
Parameter Type Description
Buf Pointer to a long buffer. Buffer to copy micro voltages too.
BufSize Pointer to a long Size of buffer must be passed or number of samples
requested. The returned value will indicate the number of
actual samples copied to the buffer.
Return Long Error Code
Querying the ADC subsystem
The driver can be queried to check the status of the ADC subsystem. The number of unread
samples is one example.
API-CALL
Long EDRE_Query (ulng Sn, ulng QueryCode, ulng Param)
Parameter Type Description
Sn Unsigned long Board’s serial number
QueryCode Unsigned long Query code. See appendix
Example:
ADUNREAD: This will tell you the number of available
samples.
ADBUSY: Is the ADC subsystem busy?
Param Unsigned long Extra parameter.
Return Long Returned query code
ACTIVEX CALL
Long EDREADX.GetUnread ()
Parameter Type Description
Return Long Number of samples available in the driver.
This function automatically queries the ADC driver buffer for the number of available samples.