Communication between the PC and Commander core is done using the Windows-compatible DLL API functions shown below. Windows programming languages that use a DLL, such as Visual BASIC, Visual C++, Java, Python, LabVIEW, etc. can be used to communicate with the Commander core.

Typical communication transaction time for sending a command from the PC and getting a reply from the controller using the SendReceiveCommanderHID API function is in single-digit milliseconds. This value will vary with the CPU speed and type of command requested.

The DLL file CMDHidApi.dll (32bit) or CMDHidApi64.dll (64bit) will be needed to access these API functions. These DLL files are not included with this product, please download them from our website. 

For HID communication, the following DLL API functions are provided:

Function name

Description

GetCommanderHIDnumber()

Return the number of Commander core devices connected to the host

GetCommanderHIDName(int index, 

                                                 char* name)

Obtain the device name string of a device connected to host

OpenCommanderHID(HANDLE* pHandle,

                                          char* name)

Obtain the HANDLE* to operate a device

CloseCommanderHID(HANDLE* pHandle)

Close the specified HANDLE*

SendReceiveCommanderHID(HANDLE* pHandle)

Communication between the host and the device

DLL/API functions


<  Topic Home | Home |  Next Section | First SubSection >


This section is broken into the following subsections;


<  Topic Home | Home |  Next Section | First SubSection >