Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Python driver for Polyscience circulating baths.

Project description

polyscience

Python driver for Polyscience Advanced Digital Controller Circulating Baths.

Note: We've moved away from using these baths, opting instead for Huber. On top of the communication issues, these units were remarkably unreliable.

This was created to support older circulating baths (before touch screen models). These older devices have ethernet ports, but only support serial communication over UDP. This code attempts to handle the awkwardness of serial-over-UDP communication, providing a simple API to read and control the unit.

Installation

pip install polyscience

Usage

Command Line

Read the bath from any networked computer with:

polyscience [ip-address]

This provides methods to set temperature, pump speed, control, and others. See polyscience --help for more.

Python

For complex interaction, use this as part of a Python script.

from polyscience import CirculatingBath
bath = CirculatingBath('192.168.1.100')
print(bath.get_setpoint())

A common usage is to create an interactive web site. This driver blocks (my earlier async implementations were prone to overwhelming the bath), so put the bath i/o in its own thread.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for polyscience, version 0.1.16
Filename, size File type Python version Upload date Hashes
Filename, size polyscience-0.1.16-py2.py3-none-any.whl (12.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size polyscience-0.1.16.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page