Skip to content

IO.conf documentation

freddyrios edited this page Mar 20, 2023 · 7 revisions

This page describes how the IO.conf file is used and what values / options can be used.

This is an example of one of the most basic IO.conf file.

Image of basic IO.conf file

The IO.conf uses a very simple configuration file syntax. Each line start with an identifier (Account, LoopName, Map, TypeK, Valve, etc.)
Each of these identifiers allow different parameters as explained in the following.
Note that you can also simply review the code. Each identifier has its own file (class) which parse that particular identifier type.

Semicolon (';') is a special character in the IO.conf file and it can only be used as the seperator.
Double slash ('//') will comment out things on that line. Except when it is part of an url.

Examples:
LoopName
2. parameter is the name of the webchart
3. parameter is the log level, e.g. Normal or Debug
4. parameter is the URL of the server when the data will upload to

Account
2. parameter is your full name
3. parameter is your email address
4. parameter is your password for the webchart

Map
Each device connected to the system via USB must be listed with a Map identifier
2. parameter is the serial number or the USB port or COM port of the device
3. parameter is the name of the device. This is a name that you choose.
4. parameter is the baud rate. But is optional.

TypeK
2. parameter is the prefix name of the typek thermocouple data in the webchart
3. parameter is the name of the device, which collect date from the thermocouple .
4. parameter is the port number on the device, which collect date from the valve.

TypeJ
2. parameter is the prefix name of the typej thermocouple data in the webchart
3. parameter is the name of the device, which collect date from the thermocouple .
4. parameter is the port number on the device, which collect date from the valve.

Check the code here:
https://github.com/copenhagenatomics/CA_DataUploader/tree/master/CA_DataUploaderLib/IOconf

Clone this wiki locally