3.1.1 Typical Usage
Typical Usage
- Obtain the number of Commander devices connected to the PC with GetCommanderNumber.
- Open the Commander:
- By ID:
- Get the device name string (ID) of the number (index) specified by GetCommanderID.
- Get the CommanderDeviceHandle* to manipulate the specified Commander with the device name string specified by OpenCommanderByID.
- By index (0 based)
- Get the CommanderDeviceHandle* to manipulate the specified Commander with the device name string specified by OpenCommanderByIndex.
- Communicate with the Commander core using SendReceiveCommander by specifying the acquired CommanderDeviceHandle*.
- After sending the command string, a reply string will be obtained, and an error code is returned.
For the command definition and the returned serial number string, refer to the Command Reference.
- Close the connection to the Commander with CloseCommander when finished with all operations.
< Previous | Topic Home | Home | Next Section >