Closed lithiumgold closed 6 years ago
Have you posted this on the OpenBCI forums? The problem is that the mex files (matlab executables) that they provide are incompatible with your system for whatever reason. You are using a 64-bit Mac, I take it? I'm not sure why this should be, but Matlab is sometimes touchy about this, it could have to do with the version of Matlab you have.
You can try re-building the mex files. There is a script that does this in the LSL repo (https://github.com/sccn/labstreaminglayer/blob/master/LSL/liblsl-Matlab/build_mex.m), but I don't know if the OpenBCI fork has the up to date source code for LSL. Regardless, you will need to have some build tools installed, either xcode or some other tool chain (last I checked Apple forces users to get xcode in order to use gcc, which is one of the reasons that I don't touch Apple computers anymore).
You can also try replacing the offending mex files in
I am closing this as it is an issue with OpenBCI's repository, not this one.
Thank you @dmedine ! This was very helpful. I managed to get the lsl_loadlib to work by running the build_mex function.
I was also to get the ReceiveData.m running in MATLAB by recompiling some of the .c files into mex.
Cheers!
When I enter lsl_loadlib() into MATLAB I receive the following error:
http://i66.tinypic.com/2hydp8g.png
I am using this repository to load the LSL data: https://github.com/OpenBCI/OpenBCI_MATLAB
How can I resolve this?