Phone:(705) 671-2652
    Fax:(705) 671-6127
   Email: tom@ontrak.net
Home Products Programming Applications Custom Designs Ordering News
    
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.
 
 
    
Contact Information
Address Telephone Electronic Mail
Ontrak Control Systems Inc.
764 Notre Dame Ave., Unit #1
Tel: (705) 671-2652 General Information Sales or Support
Sudbury,Ontario Fax:(705) 671-6127 tom@ontrak.net
CANADA P3A 2T2    
              
Next-Day shipping anywhere in Continental U.S. via Fed-Ex
Copyright 2012 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