3.
Device Type Definition
Below are names for device types and its' corresponding defined value:
USB_16PIO
0x01
// USB 16 Channel Photo Input / 16 Channel Photo Output Board
USB_LABKIT
0x02
// USB LABKIT
USB_16PR
0x03
// USB 16 Channel Photo Input / 16 Channel Relay Output Board
USB_STARTER
0x04
// USB STARTER
USB_8PR
0x06
// USB 8 Channel Photo Input / 8 Channel Relay Output Board
USB_4PR
0x07
// USB 4 Channel Photo Input / 4 Channel Relay Output Board
USB_8PI
0x08
// USB 8 Channel Photo Input Board
USB_8RO
0x09
// USB 8 Channel Relay Output Board
USB_16PI
0x0A
// USB 16 Channel Photo Input Board
USB_16RO
0x0B
// USB 16 Channel Relay Output Board
USB_32PI
0x0C
// USB 32 Channel Photo Input Board
USB_32RO
0x0D
// USB 32 Channel Relay Output Board
USB_IND
0x0E
// USB Industry Board
USB_M_4IO
0x10
// USB Mini 4 I/O
Notice : Please use this function to open USB_14ADDA or USB_16ADDA.
4.
Data Types of Function calls
Since the USBDII was developed in the C++ language, some data types used may not be present
in the programming language you want to use. Please find the following data type conversion
table for your convenience:
HANDLE
An opaque 32-bit integer
BYTE
A 8-bit unsigned integer
BOOL
A 32-bit integer, either 0 (FALSE) or 1 (TRUE)
DWORD
A 32-bit unsigned integer
HWND
A 32-bit integer representing a valid handle to a Window
LPTSTR
A 32-bit flat pointer to a zero terminated string
LPBOOL
A 32-bit flat pointer to a variable of type BOOL
LPBYTE
A 32-bit flat pointer to a variable of type BYTE
LPDWORD
A 32-bit flat pointer to a variable of type DWORD
Also note that the DLL employs the Standard Call (Pascal) calling mechanism, which is used for
all system. USBDII as well and is compatible with VB, VC, Delphi, .NET, and notice the variable
with same type name may have different define in different program language. For example, in
Visual Basic 6, the width of Integer is 16 bits and the width of Long is 32 bits, but in Visual Basic.
Net, the width of Integer becomes 32 bits and the width of Long becomes 64 bits. If you declare
variable with different width from our define, it may cause some run-time error.