Manual Number: 00650-014-4
Page 6-10
AD12-8 Manual
AD128_IRQTerminate
Function:
Terminates an active interrupt process.
Syntax:
Visual BASIC:
AD128_IRQTerminate() as Integer
C:
int PASCAL AD128_Terminate();
Notes:
The value returned has all curve functions and scaling applied to the result.
Error Codes:
IRQ_UNINSTALL:
No interrupt process is active.
AD128_SUCCESS:
Operation was performed without error.
AD128_IRQStatus
Function:
Returns the status of a pending interrupt process.
Syntax:
Visual BASIC:
AD128_IRQStatus(scan as Integer, conv as Integer) as Integer
C:
int PASCAL AD128_IRQStatus(int *scan,int *conv);
*scan:
Pointer for the driver to return the number of scans completed so far.
*conv:
Pointer for the driver to return the number of conversions completed during
the current scan.
Notes:
When the values returned in
scan
and
conv
are greater than or equal to the
values you passed to AD128_IRQScan, then the process is complete.
Error Codes:
INVALID_PTR:
One or more of the return pointers is invalid.
AD128_SUCCESS:
Operation was performed without error.
AD128_IRQScan
Function:
Scans a portion, or the entire point list a given number of times. This is a
batch process that will read a conversion on each interrupt that is generated.
The interrupts are generated by the EOC signal.
Syntax:
Visual BASIC:
AD128_IRQScan(Byval scans as Integer, Byval convs as Integer,
Byval index as Integer, Byval IRQ as integer, Byval process as integer,
Byval hWnd as integer) as Integer
C:
int PASCAL AD128_IRQScan(int scans,int convs,int index,unsigned IRQ,
unsigned process, HWND hWnd);scans:The number of conversion scans
of the point list to perform.
convs:
The number of conversions to perform per scan.
indinyuydex:ex:
The starting index of the point list.
IRQ:
The IRQ level to use.
process:
The source of start conversion, if 0 then software start, 1 is timer and 2 is
external.
hWnd:
A handle to the calling window.