This Repository contains a collection of applications to facilitate the integration XLC series thermocouple dataloggers into user applications.
Fig.1 - Top view Quad Channel Thermocouple Datalogger.This repository, has so far been tested in Ubuntu 18.04.
Three directories are of interest:
- simple_parser - Contains a c progam that reads data from a serial port, parses it and prints the result to standard output.
- libxlc - Thermocouple parsing code in (1) is packaged into a library to facilitate integration into other projects.
- parser - Demo application. Same function as simple_parser however is linked against libxlc.
- Clone the repository and change into the directory.
git clone https:\\www.github.com\lukevassallo\tc_logger_apps.git cd tc_logger_apps
- Run make at the command line to build everything.
make all
- Configure the serial port with stty. Replace /dev/ttyS0 and 9600 with the appropriate port and baudrate. (see below for explanation)
stty -F /dev/ttyS0 9600 cs8 -cstopb -parenb -ixon -echo"
- Start with application simple_parser. The binary will be located in the build directory. Replace /dev/ttyS0 the appropriate port.
./parser/build/parser /dev/ttyS0
- Optionally download the Thermocouple Configuration and Logging Software to effortlessly get acquainted with the device.
# Linux debian source ./scripts/get_lnx_sw.sh # Windows source ./scripts/get_win_sw.sh
The following command configures the serial port /dev/ttyS0 with 9600 baud, 8 data bits, 1 stop bit, no parity, no hardware flow control, no local echo. stty -F /dev/ttyS0 9600 cs8 -cstopb -parenb -ixon -echo