bsl.StreamViewer#

class bsl.StreamViewer(stream_name=None)#

Class for visualizing the signals coming from an LSL stream.

The stream viewer will connect to only one LSL stream. If stream_name is set to None, an automatic search is performed followed by a prompt if multiple non-markers streams are found.

Parameters

stream_name (str | None) – Servers’ name to connect to. None will prompt the user.

Attributes
sr

Connected StreamReceiver.

stream_name

Connected stream’s name.

Methods

start([bufsize])

Connect to the selected amplifier and plot the streamed data.

property sr#

Connected StreamReceiver.

Type

StreamReceiver

start(bufsize=0.2)#

Connect to the selected amplifier and plot the streamed data.

If stream_name is not provided, look for available streams on the network.

Parameters

bufsize (int | float) – Buffer/window size of the attached StreamReceiver. The default 0.2 should work in most cases since data is fetched every 20 ms.

property stream_name#

Connected stream’s name.

Type

str