![]() |
Qmix SDK
20200506
The software libraries for integration of all CETONI devices.
|
If you open the labbCAN library via LCB_Open() you need to provide a path to a valid device configuration:
A device configuration is a folder with a set of XML files which contain a complete description of the configuration of all devices in the current setup. Only devices that are properly configured in the device configuration are available in the labbCAN environment. The device configuration contains common settings (like data path, log file or global bus objects) and device specific settings. You create a device configuration with the device configurator in the QmixElements software. If you have a special device setup, that is not supported by the QmixElements device configurator, a valid device configuration is provided by cetoni on shipment of your devices.
The device configuration is a set of XML files. Each device configuration has a main configuration file named device_configuration.xml
. This file contains global settings like data path and logging file and also lists device plugins (device configuration files).
This is an example of a valid device configuration file:
For each plugin listed in <PluginList>
there needs to be a plugin specific configuration file named like the plugin. E.g. the plugin nemaxys requires a configuration file nemaxys.xml
in the same directory where the device_configuration.xml
file is located. Because the labbCAN libraries are part of the Qmix SDK the configuration files are shared between the QmixElements software and the labbCAN libraries. Therefore the configuration files may contain configuration settings that are not required by the labbCAN libraries.
For each device that should be available in the labbCAN environment an device entry needs to exist in the device configuration files. The following sample shows a device configuration file for a single positioning axis:
Each device is a named entity. That means each <Device>
XML tag has a Name
attribute and a number of configuration parameters. Each device configuration supports the <Simulated>
tag. With this tag its is possible to set a single device simulated. That means the labbCAN environment will create a simulated device that behaves similar like a real device. With this feature you can develop and test your software without the need to have a real device. You can even mix real and simulated devices. That means you can e.g. set only a single axis of an axis system to simulated.