Manual Number: 00650-014-4
Page 6-8
AD12-8 Manual
AD128_DelPtListIndexes
Function:
Removes all points from the point list, between a start and stop point list
index.
Syntax:
Visual BASIC:
AD128_DelPtListIndexes(Byval start as Integer, Byval stop as Integer) as
Integer
C:
int PASCAL AD128_DelPtListIndexes(int start,int stop);
start:
Starting point in the point list index range.
stop:
Ending point in the point list index range.
Notes:
The
start
and
stop
parameters are NOT point addresses, but indexes into
the point list. If
start
is 5 and
stop
is 10, then the fifth through tenth point
in the list will be removed.
Error Codes:
AD128_SUCCESS:
Operation was performed without error.
AD128_SetSettleTime
Function:
Sets the sample-and-hold settle time delay for the AT16-P.
Syntax:
Visual BASIC:
AD128_SetSettleTime(Byval settle as Integer) as Integer
C:
int PASCAL AD128_SetSettleTime(unsigned settle);
settle:
Number of settle time counts.
Notes:
The sample-and-hold settle time is primarily intended for when an AT16-
P is used in the system. When there is to be a significant change for the gain
used in the preceding conversion, the sample-and-hold circuitry many need
extra time to sample. This is normally in cases when the gains vary widely
from channel-to-channel. Symptoms of a need for this extra time are when
the values returned by the driver seem to be close, but not as accurate as
expected. To determine the amount of extra time needed, start with 25 and
vary the number that yields the expected accuracy. The number should be
as small as practicable so as not to adversely affect throughput of the system.
Error Codes:
AD128_SUCCESS:
Operation was performed without error.
AD128_GetNextPoint
Function:
Performs an A/D conversion on the next point in the point list, and
increments the point list index to the next position in the point list.
Syntax:
Visual BASIC:
AD128_GetNextPoint(addr as Integer, result as Single) as Integer
C:
int PASCAL AD128_GetNextPoint(int *addr,float *result);
*addr:
Pointer for the driver to return the point address of the converted point.
*result:
A floating point pointer to return the results of the conversion.
Notes:
The value returned has all curve functions and scaling applied to the result.
Error Codes:
INVALID_PTR:
One or more of the return pointers is invalid.
LIST_EMPTY:
The point list has not points in it.