function AD128_Setup(ulBase: LongWord; ubIRQ: Byte; iReservedA: SmallInt; iReservedB: SmallInt; lpChannelTable: Pointer; ulCTSize: LongWord; lpGainTable: Pointer; ulGTSize: LongWord; var lpdfRate: Double; lNumPoints: LongInt): LongInt; cdecl;
long AD128_Setup(DWORD ulBase, byte ubIRQ, int iReservedA, int iReservedB, void *lpChannelTable, DWORD ulCTSize, void *lpGainTable, DWORD ulGTSize, double *lpdfRate, long lNumPoints)
AD128_Setup() should be called first for each point set to acquire.
If the function succeeds, it returns zero.
If it fails, it returns nonzero. To get extended error information, call GetLastError().
AD128_Setup() also provides data via the lpdfRate parameter.
function AD128_Go: LongInt; cdecl;
long AD128_Go()
AD128_Go() initiates the acquisition of a point set.
This function receives no parameters.
If the function succeeds, it returns zero.
If it fails, it returns nonzero. To get extended error information, call GetLastError().
function AD128_Status: LongInt; cdecl;
long AD128_Status()
AD128_Status() can be called to get the number of points yet to be acquired in the point set.
This function receives no parameters.
If the function succeeds, it returns the number of points remaining. This value will be zero or greater.
If it fails, it returns a negative value. To get extended error information, call GetLastError().
function AD128_Stop: LongInt; cdecl;
long AD128_Stop()
AD128_Stop() ceases point list acquisition.
This function receives no parameters.
If the function succeeds, it returns zero.
If it fails, it returns nonzero. To get extended error information, call GetLastError().
function AD128_GetData(lpBuf: Pointer; ulBufSize: DWORD): LongInt; cdecl;
long AD128_GetData(void *lpBuf, DWORD ulBufSize)
AD128_GetData() retrieves the point list acquired.
If the function succeeds, it returns the number of bytes actually placed in memory.
If it fails, it returns a negative value. To get extended error information, call GetLastError().