BpodModule
- class BpodModule(connected=False, module_name='', firmware_version=0, events_names=[], n_serial_events=0, serial_port=None)[source]
Bases:
object
- __init__(connected=False, module_name='', firmware_version=0, events_names=[], n_serial_events=0, serial_port=None)[source]
Methods
__init__
([connected, module_name, ...])load_message
(msg[, msg_id])Load a message through bpod to the module and associate an ID to it.
read_char_array
([size])read_float_array
([size])read_uint16_array
([size])read_uint32_array
([size])read_uint8_array
([size])start_module_relay
()stop_module_relay
()write_char_array
(message)write_float_array
(message)write_uint16_array
(message)write_uint32_array
(message)write_uint8_array
(message)- load_message(msg, msg_id=None)[source]
Load a message through bpod to the module and associate an ID to it.
- Parameters:
msg (list(int)) – Message to send
msg_id (int) – Id of the message to use