Skip to content

New Era Pump controller program for flowing salt buffers to C. elegans

License

Notifications You must be signed in to change notification settings

beowulfey/PumpController

Repository files navigation

Pump Controller

Pump controller program for flowing salt buffers to C. elegans. Build upon a modified version of Florian Lapp's nesp-lib library.

This is a GUI-based program for controlling two New Era NE-1000X syringe pumps. I wrote it with the expectation that the two pumps contain buffers with different salt concentrations; these two channels are then combined in line with a static mixer to a chosen concentration. It lets a user easily input protocols consisting of different concentration holds and linear gradients.

image

The pumps must have the X1 firmware upgrade (for the linear gradients) but I don't have any safeguards in place in case you don't have the upgrade, so it will probably just error out if you don't.

The protocols are saved in the pump as phases in the pump program. Each pump can contain a maximum of 41 phases. If you upgrade to the X2 firmware you can increase that to 340 phases or so. This might be worthwhile for more complex experiments.

Note: phases that consist of one pump being paused (i.e. 0% A or 100% A, etc) enter a "pause" cycle into the appropriate phase. This function has a limit of 99 seconds. Thus, a pause can quickly cause the number of phases to be longer than expected! For example, a run of 30 minutes at 100% A would result in pump B having a pause ~18 phases long.

INSTALLATION

I haven't really made this user friendly yet -- still need to update setup.py and what not. Anyway, for now -- to install:

  1. create a new python environment with pip, and run:

pip install -r requirements.txt

  1. Install the Python Build package and build in the base directory, then install the built wheel (note that the file name may be different).

pip install build pyinstaller
python -m build
pip install dist/PumpController-1.2.0-py3-none-any.whl

  1. You can now run the program by running:

python PumpController.py

  1. As an optional "make it more user friendly" step, use PyInstaller to make it a bit more portable:

pyinstaller PumpController.py

This will create an .EXE in dist/PumpController. You can create a shortcut to this on the desktop or somewhere else.

About

New Era Pump controller program for flowing salt buffers to C. elegans

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages