main.init_lsl_outlet
threshold_controller.main.init_lsl_outlet(cfg)Initialize an LSL (Lab Streaming Layer) outlet for threshold controller output.
This function creates an LSL outlet that streams threshold controller decisions as a single-channel stream.
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 |
Returns
| Name | Type | Description |
|---|---|---|
| pylsl.StreamOutlet | The LSL outlet for streaming the controller output. |