Skip to content

janelia-python/bioshake_device_python

Repository files navigation

bioshake_device_python

Package Information

Name
bioshake_device_python
Version
1.7.2
License
BSD
URL
https://github.com/janelia-python/bioshake_device_python
Author
Peter Polidoro
Email
peter@polidoro.io

This Python package (bioshake_device) creates a class named BioshakeDevice, which contains an instance of serial_device2.SerialDevice and adds methods to it to interface to Q.instruments BioShake devices.

Example Usage

from bioshake_device import BioshakeDevice
dev = BioshakeDevice() # Might automatically find device if one available
# if it is not found automatically, specify port directly
dev = BioshakeDevice(port='/dev/ttyUSB0') # Linux specific port
dev = BioshakeDevice(port='/dev/tty.usbmodem262471') # Mac OS X specific port
dev = BioshakeDevice(port='COM3') # Windows specific port
dev.get_description()
dev.shake_on(speed_target=1000) # speed_target (rpm)
dev.get_shake_actual_speed()
dev.shake_off()
dev.temp_on(temp_target=45) # temp_target (°C)
dev.get_temp_actual()
dev.temp_off()
devs = BioshakeDevices()  # Might automatically find all available devices
# if they are not found automatically, specify ports to use
devs = BioshakeDevices(use_ports=['/dev/ttyUSB0','/dev/ttyUSB1']) # Linux
devs = BioshakeDevices(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X
devs = BioshakeDevices(use_ports=['COM3','COM4']) # Windows
dev = devs[0]

Installation

https://github.com/janelia-python/python_setup

Linux and Mac OS X

mkdir -p ~/virtualenvs/bioshake_device
virtualenv ~/virtualenvs/bioshake_device
source ~/virtualenvs/bioshake_device/bin/activate
pip install bioshake_device

Windows

virtualenv C:\virtualenvs\bioshake_device
C:\virtualenvs\bioshake_device\Scripts\activate
pip install bioshake_device

About

Interface to Q.instruments BioShake devices.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages