Lab Streaming Layer (lsl): Which variable in the Matlab workspace is the raw streamed data?
Hi all,
I have managed to stream EEG into Matlab using lab streaming layer and BCILAB. But it is not clear to me how exactly to access the raw streamed data, in order to run analysis on it etc.
Can anyone help with this?
***
I open the stream from the Mac terminal using lab streaming layer.
I open BCILAB within Matlab.
I send the streamed data to Matlab, either using the BCILAB GUI, or with a command such as: run_readlsl('DataStreamQuery','type=''EEG''', 'MarkerQuery','');
The Matlab workspace then shows a range of variables, such as the structure 'laststream' and the variable 'laststream_chunk_clr' which is (8X13) double, and updates over time, as the streamed data comes in.
If I want to write some simple analysis code, such as some form of spectral analysis to calculate the power of alpha over time, which data variable in the Matlab workspace do I actually use?
It can't be the 'last stream_chunk_clr because that is only 13 columns/time points.
Can anyone help with this?
*******
I have looked through the OpenBCI forum, and had a look at many of the LSL tutorial youtube clips, but I can't see anything that explains this very basic issue.
Thanks in advance!
Kaelasha
Comments