Skip to content

CLI and Python driver for Polyscience Advanced Digital Controller Circulating Baths.

License

Notifications You must be signed in to change notification settings

numat/polyscience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

CLI and Python driver for Polyscience Advanced Digital Controller Circulating Baths.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages