REMOTE CONTROL
51
USB-HID device class
LCR-1000 provides USB-HID class, which can be automatically
identified by Windows when connected to a PC.
Therefore, the user does not need to install the driver, and the
instrument can be installed automatically under the Windows
system (as shown below), and the user can use the Windows
internal API function to complete the control of the instrument.
The instrument provides free data communication examples for
user reference, and the example codes are issued together with the
manual.
Communication parameters:
VIP: 2184 (HEX)
PID: 1000~1007 (HEX)
Packet: 64 bytes
The basic API functions used are as follows:
CreateFile(
devDetail->DevicePath, // Device path
GENERIC_READ | GENERIC_WRITE, // Access method
FILE_SHARE_READ | FILE_SHARE_WRITE, // Share
mode
NULL,
OPEN_EXISTING, // When the file does not exist, return
failure
FILE_FLAG_OVERLAPPED, // Open in overlapped
(asynchronous) mode
NULL);