An unoffical Python wrapper for the SSI-Teledyne Next Generation class HPLC pumps.
Project description
Overview
An unoffical Python wrapper for the SSI-Teledyne Next Generation class HPLC pumps.
MIT license, (C) 2021 Alex Whittington <alex@southsun.tech>
Installation
The package is available on PyPI.
pip install py-hplc
Using the package
You can open a pump instance like this
>>> from py_hplc import NextGenPump >>> pump = NextGenPump("COM3") # or "/dev/ttyUSB0", etc.
You can inspect the pump for useful information such as its pressure units, firmware version, max flowrate, etc.
>>> pump.version '191017 Version 2.0.8' >>> pump.pressure_units 'psi' >>> pump.pressure 100
The interface behaves in a typical way. Pumps can be inspected or configured without the use of getters and setters.
>>> pump.flowrate 10.0 >>> pump.flowrate = 5.5 # mL / min >>> pump.flowrate 5.5 >>> pump.run() >>> pump.is_running True >>> pump.stop() >>> pump.is_running False >>> pump.leak_detected False
Some pump commands, such as “CC” (current conditions), return many pieces of data at once.
This package makes the data available in concise, descriptive, value-typed dictionaries.
>>> pump.current_conditions() {'response': 'OK,0000,10.00/', 'pressure': 0, 'flowrate': 10.0} >>> pump.read_faults() {'response': 'OK,0,0,0/', 'motor stall fault': False, 'upper pressure fault': False, 'lower pressure fault': False}
See the API Documentation for more usage examples.
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
py-hplc-0.1.6.tar.gz
(10.3 kB
view hashes)
Built Distribution
py_hplc-0.1.6-py3-none-any.whl
(10.0 kB
view hashes)