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 

OpenAduDevice

This functions searches for any ADU device attached to the computer. The function opens the first ADU device that it encounters and passes back a handle to it.

The handle value must be retained by the calling program and used with all subsequent ReadAduDevice, WriteAduDevice and CloseAduDevice function calls.

Note that "first" in this context does not necessarily reflect the order that the devices were plugged in. "First" means the first one encountered in the internal list maintained by the Windows operating system.

If more than 1 ADU device is connected to the personal computer then use OpenAduDeviceByProductId or OpenAduDeviceBySerialNumber instead of OpenAduDevice.

C Declaration:

void * __stdcall OpenAduDevice(unsigned long iTimeout);

Visual Basic Declaration:

Declare Function OpenAduDevice Lib "AduHid.DLL" _
(ByVal iTimeout As Long) As Long

Arguments:

Argument Type Value Description
iTimeout unsigned long 0 timeouts disabled
other timeout processing enabled


Any non-zero iTimeout value will enable timeout handling. The actual timeout period is passed into the ReadAduDevice and WriteAduDevice function calls.

Return Codes:

Value Description
INVALID_HANDLE_VALUE device was not opened
0 device was not opened
other Handle to the ADU device
 
 
    
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