liblsl-Matlab icon indicating copy to clipboard operation
liblsl-Matlab copied to clipboard

vis_stream - Opening an inlet

Open sanobardar opened this issue 7 months ago • 1 comments

I am getting the following errors while running vis_stream('timerange',5) function in Matlab

Error using lsl_get_fullinfo An unknown error occurred.

Error in lsl_inlet/info (line 75) result = lsl_streaminfo(self.LibHandle,lsl_get_fullinfo(self.LibHandle, self.InletHandle, timeout));

Error in vis_stream (line 124) stream = create_streambuffer(opts,inlet.info());

I have loaded the lsl lib using: lib = lsl_loadlib(); build_mex

sanobardar avatar Nov 14 '23 14:11 sanobardar

I think it is caused by a bug.

This https://github.com/labstreaminglayer/liblsl-Matlab/blob/master/mex/lsl_get_fullinfo.c#L18 should be:

int errcode = 0;

To avoid read garbage in errcode after call func().

jesustorresdev avatar Mar 01 '24 00:03 jesustorresdev