Git Product home page Git Product logo

pytemperaturectrl's Introduction

pytemperaturectrl - Python package

This is a python library to communicate with temperature control unit. Work with Julabo Corio CD www.julabo.com

Some Samples

open port, get version

>>> from pytemperaturectrl import julabo
>>> j = julabo.Julabo()
>>> j.open('COM4')
>>> j.getVersion()
'JULABO CORIO CD - 200F 230V 50Hz Version 2.4.1'

close port

>>> j.close()

pytemperaturectrl's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jenrei

pytemperaturectrl's Issues

unicode strings not supported

While pytemperaturecontrol appears to find and communicate with the device, the latest version of Python uses unicode strings, which appears to mess up the communications. Running the example script returns

TypeError: unicode strings are not supported, please encode to bytes: 'version'

From testing here it seems adding a b to line 60 in julabo.py so it reads:
self.serial.write(b'version')
rectifies that problem.
The same modification appears to work with temperature, status etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.