Mouse joystick interface for communicating with mouse joystick controller.
Project description
This Python package creates a class named MouseJoystickInterface.
Authors:
Peter Polidoro <peterpolidoro@gmail.com>
License:
BSD
Example Usage:
dev = MouseJoystickInterface() # Might automatically find devices if available # if devices not found automatically, specify ports directly dev = MouseJoystickInterface(use_ports=['/dev/ttyACM0','/dev/ttyACM0']) # Linux specific ports dev = MouseJoystickInterface(use_ports=['/dev/tty.usbmodem262471','/dev/tty.usbmodem262472']) # Mac OS X specific ports dev = MouseJoystickInterface(use_ports=['COM3','COM4']) # Windows specific ports # abort_assay prematurely stops a running assay and leaves the rig ready to start a new assay dev.abort_assay() # start_assay is the main method that starts the assay, collects assay data, and saves data files dev.start_assay() # optional mouse_joystick_controller methods dev.mouse_joystick_controller.set_properties_to_defaults(['ALL']) dev.mouse_joystick_controller.get_property_values(['ALL']) dev.mouse_joystick_controller.reach_position1_means('getValue') dev.mouse_joystick_controller.reach_position1_means('setValue',[100,160,200]) dev.mouse_joystick_controller.reach_position1_means('setArrayLength',2) dev.mouse_joystick_controller.reach_position1_means('setValue',[100,200]) dev.mouse_joystick_controller.trial_count('setValue',3) dev.mouse_joystick_controller.repeat_aborted_trial('setValue',False) dev.mouse_joystick_controller.get_assay_status() dev.mouse_joystick_controller.move_joystick_to_base_position() dev.mouse_joystick_controller.move_joystick_to_reach_position() count = 1 dev.mouse_joystick_controller.activate_lickport(count) dev.mouse_joystick_controller.get_trial_timing_data() dev.mouse_joystick_controller.abort_trial()
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
Close
Hashes for mouse_joystick_interface-3.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d362a106773b9d024fb84789379fb8ea04fb55f8b31cc108e8041035acafbf0 |
|
MD5 | 6cff3aa40cdf8a9493656514aee614ac |
|
BLAKE2b-256 | 2f2a4e736ed5c1547022708b13b1e60812260e6ca8fe5527816dc62df046cdab |
Close
Hashes for mouse_joystick_interface-3.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a73e52f6cd8eb3d0c6df88801a94b44da9982746e480df3c51eed9327efa92 |
|
MD5 | 921e81e4c542c2e6de64e6af8a144cec |
|
BLAKE2b-256 | 00c00683eb7bc82b14bd533f57849aa8a225a2f5286c8190b8f449dd88cbd071 |