Chapter 6: AD12-8 Windows Driver Reference
Manual Number: 00650-014-4
Page 6-7
AD128_AddPoints
Function:
Adds a range of points to the point list.
Syntax:
Visual BASIC:
AD128_AddPoints(Byval start as Integer, Byval stop as Integer)
as Integer
C:
int PASCAL AD128_AddPoints(int start,int stop);
start:
Beginning point address of the range.
stop:
Ending point address of the range.
Notes:
If the starting point address is greater than the stop point address, the points
are installed into the point list in reverse order.
Error Codes:
POINT_ERROR:
start
or
stop
is not between 0 and 128.
WINDOWSERROR: A memory error occurred in Windows.
AD128_SUCCESS:
Operation was performed without error.
AD128_ResetListIndex
Function:
Resets the point list index pointer to the first point in the point list.
Syntax:
Visual BASIC:
AD128_ResetListIndex() as Integer
C:
int PASCAL AD128_ResetListIndex();
Notes:
This function is relevant to programs that are performing one conversion
from the point list at a time, rather than a batch process such as polling.
Single conversion routines that use the point list use the point list index to
determine the next point to convert.
Error Codes:
AD128_SUCCESS:
Operation was performed without error.
AD128_ClearPointList
Function:
Removes all points from the point list, all point list pointers are set to NULL
and all memory used by the point list is freed.
Syntax:
Visual BASIC:
AD128_ClearPointList() as Integer
C:
int PASCAL int PASCAL AD128_ClearPointList();
Notes:
None.
Error Codes:
AD128_SUCCESS:
Operation was performed without error.