Live-Streaming Data into Python to find 'focus' [resolved]
Hey guys!
So I understood that with LSL you can create a stream of data and that data can then be used in Python.
But what if I want to use the data stream "live" in python, and react to a certain signal?
So ultimately I want to rebuild the "focused/not focused" program described here:
https://www.instructables.com/id/Send-Focus-Data-From-OpenBCI-GUI-to-Arduino/
So if I get a predominant alpha wave on 01 and/or 02 I want to immediately react and do something (easiest thing is to print a message in the python prompt...)
thankful for any input!
Best,
Deniz
Comments
Hey @Deniz_Oe, I am the author of the Instructable!
Theoretically, this can all be done inside Python without the GUI, though this is much more difficult than the instructable. You could use:
Another (easy) way is to use the GUI and make an LSL stream:
https://github.com/OpenBCI/OpenBCI_GUI/blob/master/Networking-Test-Kit/LSL/lslStreamTest.py