bsl.StreamViewer

class bsl.StreamViewer(stream_name=None)[source]

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_namestr | 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.

start(bufsize=0.2)[source]

Connect to the selected amplifier and plot the streamed data.

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

Parameters:
bufsizeint | 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 sr

Connected StreamReceiver.

Type:

StreamReceiver

property stream_name

Connected stream’s name.

Type:

str