6.1. Programming guide

The libximc library is used to work with the controller in Windows, Linux and macOS. The examples included in the library package are intended for quick acquaintance with the programming for XIMC controllers. The developer kit includes:

  • Compiled libximc library for Windows, Linux, and macOS
  • Programming guide (Also the libximc manual can be found on this site.)
  • Code examples for C++, C#, Python, LabView, Matlab, Delphi, LabWindows, Java

The examples for working with LabView are provided independently.

The development kit can be downloaded on the Software page.
The Libximc sources are also available for download.

Logging
XILOG enables logging to a file. In other words, if a program using libximc (including xilab, which also relies on libximc) is launched with the XILOG environment variable set, logging to a file will be activated. The log records events such as sending data to the controller, receiving data from the controller, as well as opening and closing the port.

How to enable logging?
In the environment variables, create a variable named XILOG and specify the path where the logs will be saved. Refer to the example in the screenshot below.

../../_images/xilog.jpg

Example of Setting the XILOG Environment Variable in Windows