PCI 730 & PC104P-30 User Manual
Eagle Technology - Data Acquisition
Parameter
Type
Description
Return
Long
Error Code
API-CALL
Long EDRE_ADStop (ulng Sn)
Parameter
Type
Description
Sn Unsigned
long
Board’s serial number
Return
Long
Error Code
ACTIVEX CALL
Long EDREADX.Stop ()
Parameter
Type
Description
Return
Long
Error Code
Getting data from the driver buffer
A single call is necessary copy data from the driver buffer to the user buffer. This board does
not
support the function
ADGetDataRaw().
API-CALL
Long EDRE_ADGetData (ulng Sn, plong Buf, pulng BufSize)
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
Eagle Technology © Copyright 2003 – www.eagledaq.com
26