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

Error when streaming data using run_readlsl plugin #7

Open
gleslie opened this issue May 24, 2015 · 4 comments
Open

Error when streaming data using run_readlsl plugin #7

gleslie opened this issue May 24, 2015 · 4 comments

Comments

@gleslie
Copy link

gleslie commented May 24, 2015

Step 1: Run SendData-mac or SendData64 on Windows to send fake BioSemi EEG stream
Step 2: run BCILAB-root/bcilab.m
Step 3: run_readlsl('BioSemi'); OR GUI/Online Analysis/Read Input From.../Lab Streaming Layer/ (default settings)

This Error is printed with each incoming sample:

Error in block-reading function:
Too many input arguments.
occurred in:
run_readlsl/read_data: 183
@()read_data(inlet,marker_inlet,opts.always_double): 175
append_data: 86
onl_read_background/@(timer_handle,varargin)append_data(stream_name,stream_id,timer_handle,block_reader): 0
timercb: 30
timercb: 13

183 data_clock = data_inlet.time_correction([],opts.clock_alignment,opts.clock_est_window);

@HEPlab
Copy link

HEPlab commented Mar 8, 2016

I'm having the same error, with slightly different line numbers, apparently: Too many input arguments.
occurred in:
run_readlsl/read_data: 182
@()read_data(inlet,marker_inlet,opts.always_double): 174
append_data: 61
onl_read_background/@(timer_handle,varargin)append_data(stream_name,stream_id,timer_handle,block_reader): 0
timercb: 31
timercb: 14

I'm not sure yet if the data is actually being read in despite the error, or not, although Lab Recorder claims it is taking in data, according to the updated tracker in the bottom left-hand corner that also tracks the time of recording.

Christian, do you know if this is a critical issue or an ignore-able one?

@syedahmar
Copy link

syedahmar commented Sep 7, 2016

I am having the exact same error saying:
Error in block-reading function:
Too many input arguments.
occurred in:
run_readlsl/read_data: 183
@()read_data(inlet,marker_inlet,opts.always_double): 175
append_data: 86
@(timer_handle,varargin)append_data(stream_name,stream_id,timer_handle,block_reader): 0
timercb: 30
timercb: 13
start: 39
onl_read_background: 71
run_readlsl: 175
arg_guidialog: 238

Did anyone of you managed to solve this?

@syedahmar
Copy link

After some debugging, I have found the error and sorted:
the problem was actually in line 182 of run_readlsl here:
data_clock = data_inlet.time_correction([],opts.clock_alignment,opts.clock_est_window);
here, in the code, 3 arguments are passed and that is why we get too many input arguments. Presumably the lsl_inlet class has been updated at some point and this function now only requires a single argument. You can read more about it in the respective documentation, but basically removing all inputs and passing in nothing will work just fine!

@syedahmar
Copy link

@HEPlab the data is definitely not getting read in, into Matlab with the error. Of course, it is recorded by labrecorder, but you won't have access to that data in real time in matlab workspace..

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

3 participants