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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file polyscience-0.1.16.tar.gz
.
File metadata
- Download URL: polyscience-0.1.16.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1937f5784118b0fb7ec9dc63c54f6f99e08a713b51a00948c24c37fe0db146 |
|
MD5 | 71c072ef53f31951e5b70bcece9e9a7f |
|
BLAKE2b-256 | ec274787a95e958d7e4e0d5954abe7bf5b878aa0b062a33f78ade89dbeb6af6f |
File details
Details for the file polyscience-0.1.16-py2.py3-none-any.whl
.
File metadata
- Download URL: polyscience-0.1.16-py2.py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4257c3ffc1de8e1ba1d7c4a54362e9e481cc82a0435e67b5720fee8891c20a7a |
|
MD5 | bf0e5fdc56e765648c2893db02fa1e9f |
|
BLAKE2b-256 | 2bbaee190a5a105c7df5887f9be62666f06c056c361a8db47e1dbfcebaa2991f |