The communication library (RobotComm) implements a number of low level functions for sending commands and receiving data from the Robot/control box. In most cases, you will find working with the COM object library (RobotLib) much easy. Use the communication library directly if you don't need the extra features of RobotLib such as support for events and add-on modules.

RobotComm exports two sets of command functions: immediate and delayed commands. With immediate command functions, the command is sent to the Robot immediately. With delayed command functions, several commands can be grouped together before being sent to the Robot.

For simple tasks, the immediate command functions will be slightly easier to use. However, if you need to send many commands consecutively, the performance of your application may be degraded since each function call will block until the command is sent or a timeout occurs. To avoid such delays, group commands together with the delayed command functions. Note that not all commands can be grouped together. However, the library will still try to send groupable commands together.

Using the Communication Library

To use, include the header file RobotComm.h in your source files. See the reference section for information on individual functions.