top01.jpg (17169 bytes)
mleft.jpg (4986 bytes) m01a.jpg (6169 bytes)     m02a.jpg (6905 bytes)     m03a.jpg (7743 bytes)    m04a.jpg (7456 bytes)     m05a.jpg (7878 bytes)     m06a.jpg (6862 bytes)     m07a.jpg (6076 bytes) mright01.jpg (5078 bytes)

ADU  Series - USB Data Acquisition Interface SDK

ADU Error Codes

Check the return code after each call into the AduHid.dll. If the call failed additional information is usually available from the GetLastError function.

Most of the error codes returned by GetLastError will be values set by the Windows operating system functions that the AduHid.dll uses.

A few of the error codes are set by AduHid.dll. The error codes are consistent with Microsoft's documentation.

Some common error codes are listed here.

Common Error Codes
Error Code Description
24 ERROR_BAD_LENGTH
"The program issued a command but the command length is incorrect."
FIX: Number of bytes to read/write must be > 0.
1460 ERROR_TIMEOUT
"This operation returned because the timeout period expired."
This is be a normal condition on a read operation if the ADU device had nothing to report to the host.
FIX: Ensure that the ADU device is connected. Retry the operation.
NOTE: If the ADU device was disconnected and reconnected then the old handle must be closed and a new handle opened. (call AduDeviceClose, followed by AduDeviceOpen)
1784 ERROR_INVALID_USER_BUFFER
"The supplied user buffer is not valid for the requested operation."
FIX: Supply a non-zero value for the buffer pointer.
 

 

NEWS         PRODUCTS         PROGRAMMING          APPLICATIONS          CUSTOM DESIGN          ORDERING          HOME


TestPoint is a trademark of Capital Equipment Corp.   
LabVIEW is a trademark of National Instruments.
Visual BASIC is a trademark of Microsoft Corporation


Copyright © 2002 ONTRAK CONTROL SYSTEMS 764 Notre Dame Ave, Unit #1 , Sudbury, Ontario, CANADA P3A 2T2  
"Quality serial Data Acquisition Interfaces"           PH. (705) 671-2652 FAX (705) 671-6127