bsl.utils.lsl#

LSL wrapper functions for creating a server and a client.

Functions

list_lsl_streams([ignore_markers])

List all the available outlets on LSL network.

lsl_channel_list(inlet)

Extract the channels name list from the LSL info.

search_lsl([ignore_markers, timeout])

Search and select an available stream on LSL network.

bsl.utils.lsl.list_lsl_streams(ignore_markers=False)#

List all the available outlets on LSL network.

Parameters

ignore_markers (bool) – If True, ignore streams with Marker type.

Returns

  • stream_list (list) – List of the found stream name.

  • streamInfos (list) – List of the corresponding pylsl.StreamInfo.

bsl.utils.lsl.lsl_channel_list(inlet)#

Extract the channels name list from the LSL info.

Parameters

inlet (pylsl.StreamInlet) – Inlet to extract the channels list from.

Returns

ch_list – List of channels name [name1, name2, ... ].

Return type

list

bsl.utils.lsl.search_lsl(ignore_markers=False, timeout=10)#

Search and select an available stream on LSL network.

This function does not open an LSL inlet.

Parameters
  • ignore_markers (bool) – If True, ignore streams with Marker type.

  • timeout (int) – Timeout duration in seconds after which the search of an LSL stream is interrupted.

Returns

stream_name – Selected stream name.

Return type

str