How to connect OpenBci with Matlab (LSL or BrainFlow)
1.How to connect OpenBci with Matlab using LSL. I tried with Matlab 2019a and OpenBCI V4.2.0 but it was not connected
2.someone tells me how I want to record Time series data in milliseconds but is shown to me in seconds.
3. I am trying Neuromore for real-time reading with using OpenBci but it is not connected with Dongle and software OpenBCI_GUI?
Comments
re: (3), Neuromore can connect to the Cyton serial port dongle (usb serial port). But does not yet have support for BrainFlow library access. Once they do that, it will give them Ganglion access.
Direct access to OpenBCI devices from Matlab, has just been developed by Andrey Parfenov @Andrey1994. So it will be possible to skip the LSL pathway.
https://brainflow.readthedocs.io/en/stable/
I don't think the current docs cover the Matlab API. But I think the code is available,
https://github.com/OpenBCI/brainflow
Regards, William
Docs generated from master branch has matlab code samples https://brainflow.readthedocs.io/en/master/Examples.html#matlab but I just realized that there is one issue on unix which should be fixed. On Windows should work right now
Fixed all issues on unix and created new release
hello I have followed the steps to use brainflow in matlab and when executing the BrainFlowGetData example I get the following error:
Error loading library intermediate output follows.
The actual error is at the end of this output.
I would appreciate if you could explain to me how to solve it, thanks
@Mars2499, hi.
Andrey should see your post on this thread and may answer here. An alternative is to post your question(s) regarding Brainflow, on the Brainflow Slack. SIgn up via this page,
https://brainflow.org/
William
Hi, just checked using the latest release and I cannot reproduce it. Downloaded from https://github.com/brainflow-dev/brainflow/releases/download/4.6.1/matlab_package.tar and used Matlab 2019b
Also, now there are tests for Matlab in CI and they are passed https://github.com/brainflow-dev/brainflow/actions/workflows/run_matlab.yml?query=branch:master
It can be that in your matlab version there is another regexp parser for C\C++ headers which doesn't like
In board_controller.h file, you can try to remove these lines to see if it helps.
In release notes for matlab 2019b there is smth about C\C++ code calling under "External Language Interfaces" https://www.mathworks.com/help/matlab/release-notes.html#mw_658d1546-34d0-4382-9b9a-78114a200148 . Maybe you will need to update from 2019a