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

ReadAduDevice

This function reads data from the ADU Device pipe. The number of bytes read is returned in lpNumberOfBytesRead.

The handle value must be the value returned by the open call.

ADU responses are limited to 7 characters in length.

C Declaration:

int __stdcall ReadAduDevice(void * hDevice,
const void * lpBuffer,
unsigned long nNumberOfBytesToRead,
unsigned long * lpNumberOfBytesWRead,
unsigned long iTimeout);

Visual Basic Declaration:

Declare Function ReadAduDevice Lib "AduHid.DLL" _
(ByVal aduHandle As Long, ByVal lpBuffer As String, _
ByVal lNumberOfBytesToRead As Long, _
ByRef lBytesRead As Long, ByVal iTimeout As Long) As Long

Arguments:

Argument Type Value Description
hDevice void * value from open call handle to the device
lpBuffer const char * address of buffer buffer to receive data
nNumberOfBytesToRead unsigned long &GT 0 number of bytes to read
lpNumberOfBytesRead unsigned long *   number of bytes read
iTimeout unsigned long   milli-seconds to wait


A non-zero iTimeout value can only be supplied if timeout processing was activated during the open call. (ie. a non-zero iTimeout value was passed into the open function)

Return Codes:

Value Description
0 call failed
other call succeeded

Note: call GetLastError to get more information about a failed read operation

 

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