random_streamer.run_random_stream

mockup_streamer.random_streamer.run_random_stream(
    stop_event,
    n_channels=10,
    sfreq=100.0,
    pre_buffer_s=300,
    stream_name='mockup_random',
    stream_type='EEG',
    markers_t_s=1.0,
    marker_values=None,
)

Run a random data stream.

Parameters

Name Type Description Default
stop_event threading.Event Event to signal stream stop. required
n_channels int Number of channels. 10
sfreq float Sampling frequency in Hz. 100.0
pre_buffer_s int Buffer size in seconds. 300
stream_name str Name of the LSL stream. 'mockup_random'
stream_type str Type of the LSL stream (e.g., “EEG”). 'EEG'
markers_t_s float Marker interval in seconds. 1.0
marker_values list | None Marker values to cycle through. None

Returns

Name Type Description
int Exit code (0 for success).