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

OpenAduDeviceBySerialNumber

This functions searches for any ADU device attached to the computer that matches the serial number. The function opens the first ADU device that matches 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 the serial number of a ADU device is unique so only one device will match.

C Declaration:

void * __stdcall OpenAduDeviceBySerialNumber(const char* psSerialNumber,
unsigned long iTimeout);

Visual Basic Declaration:

Declare Function OpenAduDeviceBySerialNumber Lib "AduHid.DLL" _
(ByVal sSerialNumber As String, _
ByVal iTimeout As Long) As Long

Arguments:

Argument Type Value Description
psSerialNumber char * non 0 pointer to serial number string
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
 

 

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