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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 345506074effbe4615142428c03045a8bbf06b3ce10df4fb71353598e557a5a1 |
|
MD5 | 88b0d17fe79ec93dcfdbcd92f998e621 |
|
BLAKE2b-256 | 2f37778cf4da4ecb634da6609bc556e94c675aa1d6ce671674442c1f45c8b39c |
Close
Hashes for mouse_joystick_interface-4.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae9d6c5f988178d10f7d6498be0eaa5c239c2abd352e6a31f705e0781268c85 |
|
MD5 | d45f4ef0fb8e58c5e00bc624ecb11e94 |
|
BLAKE2b-256 | d0d0b1022bf2a4f7fbc04692bd544d46c8bf1b8d9d9dc5214f79202947261af4 |