Chapter 6: AD12-8 Windows Driver Reference
Manual Number: 00650-014-4
Page 6-13
*buffer:
Point to a floating point data buffer where the driver can place the results.
Notes:
The total number of transfers made is equal to the
scans
parameter multiplied by the
convs
param-
eter.
The function is used to transfer data taken in a batch process, such as
AD128_PollScan()
. It will
perform all curve and scaling for each point of data taken in the batch process.
Error Codes:
BUFFER_EMPTY:
The drivers internal data buffer is empty.
LIST_EMPTY:
The point list is empty.
INVALID_CONV:
The
scans
and/or
convs
parameter is > 1.
WINDOWSERROR:
A Windows related error occurred.
LIST_ERROR:
An error occurred traversing the point list.
INVALID_BUFFER:
Pointer to a buffer to return the processed data.
POINT_UNINSTALL:
The next point in the point list has not been installed with a call to
AD128_
SetPointConfig()
.
CARD_INACTIVE:
The card does not respond, no EOC.
AD128_SUCCESS:
Operation was performed without error.
AD128_FetchLastGain
Function:
Fetches the last gain code used for a given point.
Syntax:
Visual BASIC:
AD128_FetchLastGain(Byval addr as Integer, gain as Integer) as Integer
C:
int PASCAL AD128_FetchLastGain(int addr,int *gain);
addr:
The point address of the desired point.
*gain:
A pointer to a integer for the return of the gain code.
Notes:
This function is mainly useful in cases where points have been assigned an
auto gain code. This is the only way for a user program to determine the gain
used for a point that has been set to auto gain
Error Codes:
INVALID_PTR:
The gain code pointer is invalid.
AD128_SUCCESS:
Operation was performed without error.
AD128_DigitalOut
Function:
Writes a byte out to the digital output port.
Syntax:
Visual BASIC:
AD128_DigitalOut(Byval value as Integer) as Integer
C:
int PASCAL AD128_DigitalOut(int value);
value:
The value to write to the digital output port.
Notes:
Even though the
value
parameter is a 16 bit value, the driver will only use
the lower eight bits of the number.