Skip to content

BayCEER/python-licor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Licor Library for Python

Library to access Licor devices.

Supported Devices

Li-820 gas analyzer over a serial line

Installation

Installing on Linux

  • 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

Installation on Windows

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

Example Usage

Read the data values of a Licor 820 gas analyzer

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()

Authors

History

Version 1.0.0, Dec 14, 2017

  • Initial release

License

GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1, February 1999

About

Licor gaz analyzer library for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published