Streaming Data direct to Matlab

I have seen that LSL exists to stream data from the session in the the BCI GUI to Matlab. For the particular project I am working I'd like to limit the number of overheads and reduce the number of steps required for doing live stream/capture of data. This is to help keep it simple and easy to pick up for other project participants as well as students.

Is it at all possible to use port or bluetooth functions in Matlab to capture and use the data being parsed by the Cyton dongle, as an example?

Comments

  • wjcroftwjcroft Mount Shasta, CA

    The recommended approach, is to use Brainflow library from Matlab,

    https://brainflow.readthedocs.io/en/stable/Examples.html#matlab

  • @wjcroft said:
    The recommended approach, is to use Brainflow library from Matlab,

    https://brainflow.readthedocs.io/en/stable/Examples.html#matlab

    Thanks for the code example page. I downloaded the "matlab_package.tar" and placed the extrated files into the Matlab folder, included the path location into my work space. I have gone on to add and then select the MinGW64 Compiler (C++) for Matlab to be able to run the code examples. When I proceed to do so, I get "Warning: Message from C preprocessor:
    \\Documents\MATLAB\Brainflow\brainflow\inc\board_controller.h:1:9: warning: #pragma once in main file
    #pragma once
    ^~~~ "
    Followed by "Failed to parse type '( cdecl ))..."
    I have clearly missed something, but from the instructions I have seen it is unclear as to what that is. Do you have any recommendations? - thanks.

  • wjcroftwjcroft Mount Shasta, CA

    Best answers to Brainflow questions are on the Brainflow Slack. Signup on this page.

    https://brainflow.org/

    William

Sign In or Register to comment.