Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matlab crashing after receiving data from OpenBCI #20

Open
alessiaca opened this issue Dec 8, 2020 · 0 comments
Open

Matlab crashing after receiving data from OpenBCI #20

alessiaca opened this issue Dec 8, 2020 · 0 comments

Comments

@alessiaca
Copy link

I am trying to save data from OpenBCI in Matlab during an experiment in PsychToolbox. I am working with Ubuntu 20.04.1 LTS in a dual boot system, but I am really new to it.

When I run the following script the data from OpenBCI is printed for ca. 5 sec and then Matlab crashes/closes with the following error:

%% instantiate the library
disp('Loading the library...');
lib = lsl_loadlib();
% resolve a stream...
disp('Resolving an EEG stream...');
result = {};
while isempty(result)
    result = lsl_resolve_byprop(lib,'type','EEG'); end
% create a new inlet
disp('Opening an inlet...');
inlet = lsl_inlet(result{1});
disp('Now receiving data...');
while true
    % get data from the inlet
    [vec,ts] = inlet.pull_sample();
    % and display it
    fprintf('%.2f\t',vec);
    fprintf('%.5f\n',ts);
end

Loguru caught a signal: SIGSEGV
2020-12-08 13:27:04.451 ( 0.679s) [ 65B22700] :0
FATL| Signal: SIGSEGV

Can someone help me to fix this problem? I have already looked all over the internet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant