LSL Sender
- class gpype.backend.sinks.lsl_sender.LSLSender[source]
Bases:
INodeLab Streaming Layer (LSL) sender for real-time data streaming.
Implements an LSL outlet that streams multi-channel data to the Lab Streaming Layer network. Automatically configures the LSL stream based on input port context including channel count, sampling rate, and frame size. Supports both single-sample and chunk-based streaming modes.
- DEFAULT_STREAM_NAME = 'gpype_lsl'
Default LSL stream name for g.Pype data streams
- stop()[source]
Stop the LSL sender and clean up resources.
Properly releases LSL resources by setting outlet and info objects to None, allowing them to be garbage collected.
- setup(data, port_context_in)[source]
Setup the LSL stream based on input port context.
Creates LSL StreamInfo and StreamOutlet objects using metadata from the input port context. Stream is configured with appropriate parameters for EEG data transmission.
- Parameters:
- Return type:
- Returns:
Dictionary returned from parent setup method.