Manual Number: 00650-014-4
Page 6-12
AD12-8 Manual
C:
int PASCAL AD128_PollScan(int scans,int convs,int index);
scans:
The number of scans of the point list to perform.
convs:
The number of points to convert.
index:
The first point in the point list to be scanned
Notes:
The total number of conversions taken is equal to the
scans
parameter multiplied by the
convs
parameter.
Desired portions of the point list may be converted by setting the
index
parameter. The
index
parameter is a numerical value that indicates which position in the point list to start each scan.
Each succeeding scan will start at this point in the point list. To start at the beginning of the point
list use a zero for this parameter.
This routine will not exit until the entire process is complete.
The data taken are stored in the driver with no curve functions or scaling performed. After calling
this routine, a call to
AD128_PostProcess()
will return the data with all functions and scaling
performed. The call to
AD128_PostProcess()
should have identical values for
scans
,
convs
and
index
as the call to
AD128_ PollScan()
.
Error Codes:
LIST_EMPTY:
The point list is empty.
INVALID_CONV:
The
scans
and/or
convs
parameter < 1.
ACTIVE_PROCESS:
A batch process is currently active in the driver.
WINDOWSERROR:
A Windows related error occurred.
LIST_ERROR:
An error occurred traversing the point list.
POINT_UNINSTALL:
The next point in the point list has not been installed with a call to
AD128_AddPoints()
.
CARD_INACTIVE:
The card does not respond, no end-of-conversion.
AD128_SUCCESS :
Operation was performed without error.
AD128_PostProcess
Function:
Takes conversions stored in the drivers internal buffer, performs curve
functions and scaling on the data, and transfers the results to another buffer
supplied by the caller.
Syntax:
Visual BASIC:
AD128_PostProcess(Byval scans as Integer, Byval convs as Integer, Byval
index as Integer, buffer(0) as Single) as Integer
C:
int PASCAL AD128_PostProcess(int scans,int convs,int index,float
*buffer);
scans:
The number of conversion scans of the point list to perform.
convs:
The number of conversion to perform per scan.
index:
The starting index of the point list.