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(set_path='~/set_example.csv') # 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.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() duration = 10 count = 1 dev.mouse_joystick_controller.activate_lickport(duration,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-4.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6ed40f219ca902e60f8c89ce657073cbee335d513aaa97db0976bf3b66c31e |
|
MD5 | e4aadb0d2c5ffc0b93f93d444137e1fd |
|
BLAKE2b-256 | 7dd88948cb5ead0fa9e6d500e09cd12f0c15af2e7cdaab7b75723f39d3322f67 |
Close
Hashes for mouse_joystick_interface-4.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffa474e3909fb22b83daf8f16674948f5d9cff76726e7b6ea7c7fefe6077bb8d |
|
MD5 | 0dd8e4eb0fe6f1e24d37100283eb2b7e |
|
BLAKE2b-256 | 0e297a985bab97396463aa5c8c9931fde27148989943ecfacd1ba186a5b6a22c |