main.init_lsl_outlet

mb_regression.main.init_lsl_outlet(cfg, fb)

Initialize an LSL (Lab Streaming Layer) outlet for multiband regression data.

This function creates an LSL outlet that streams filtered multiband data along with model predictions. The outlet includes one channel for each frequency band for each input channel, plus one additional channel for the model output.

Parameters

Name Type Description Default
cfg dict Configuration dictionary containing LSL outlet settings. Must include an “lsl_outlet” key with name, type, nominal_freq_hz, and format fields. required
fb FilterBank Configured FilterBank object containing channel names and frequency band information used to determine the output channel structure. required

Returns

Name Type Description
pylsl.StreamOutlet The LSL outlet for streaming the data.