peripherals.RawInputPeripheral

class peripherals.RawInputPeripheral(**kwargs)

A Peripheral that streams raw EMG/EEG/etc. data

abstract set_sample_rate(sr: int)

Set the Sample rate of the peripheral. Will raise Exception if unsupported sample rate is given

abstract set_channels(channels)

Enable the given channels in the list, disabling the rest

abstract get_data()numpy.ndarray

Get the most recent data from the connected raw input peripheral Shape should be (num samples x num channels) with newest samples first

abstract start_streaming(**kwargs)

Start streaming raw data

abstract stop_streaming()

Stop streaming raw data