main.main
threshold_controller.main.main(stop_event=threading.Event())Main processing loop for the threshold controller.
This function implements the main real-time processing loop for the threshold controller. It connects to an input LSL stream, applies threshold-based decisions to the incoming data, and streams the control outputs via an LSL outlet. The configuration is loaded from “./configs/threshold_controller_config.toml”.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| stop_event | threading.Event | Threading event to signal when processing should stop. Default creates a new Event object. | threading.Event() |