Library to access Licor devices.
Li-820 gas analyzer over a serial line
- Import the repository key
wget -O - http://www.bayceer.uni-bayreuth.de/repos/apt/conf/bayceer_repo.gpg.key |apt-key add -
- Add the following repository to /etc/apt/sources.list
deb http://www.bayceer.uni-bayreuth.de/repos/apt/debian stretch main
- Update your repository cache
apt-get update
- Install the package
apt-get install python-licor
Install the package by a git clone request followed by a run of setup.py:
git clone git://github.com/BayCEER/python-licor.git
cd python-licor
python setup.py install
from licor import Li820
li = Li820("/dev/ttyUSB0")
try:
li.connect()
while True:
data = li.readData()
print("co2:{0}".format(data['co2']))
print("co2abs:{0}".format(data['co2abs']))
print("celltemp:{0}".format(data['celltemp']))
print("cellpres:{0}".format(data['cellpres']))
print("ivolt:{0}".format(data['ivolt']))
print("raw:{0}".format(data['raw']))
except KeyboardInterrupt:
li.disconnect()
- Oliver Archner - Programmer - BayCEER, University of Bayreuth
- Initial release
GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1, February 1999