Introduction
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 CETONI Elements software. If you have a special device setup, that is not supported by the CETONI Elements device configurator, a valid device configuration is provided by cetoni on shipment of your devices.
- Note
- Use the CETONI Elements software to configure your devices and to create a valid device configuration.
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 CETONI SDK the configuration files are shared between the CETONI Elements software and the labbCAN libraries. Therefore the configuration files may contain configuration settings that are not required by the labbCAN libraries.
Configuration
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.
- Warning
- You should only change settings in the configuration files that you really know. Changing device parameters may cause strange errors or even crashes of the physical devices if you provide wrong or faulty settings.