fieldtripbuffer error code

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Sat Feb 27 15:06:54 CET 2010


Hi Teris

On 22 Feb 2010, at 10:00, teris tam wrote:

> Dear Fieldtrip experts,
>        I am trying to read event data from fieldtripbuffer in matlab using read_event(), but I receive the following error:
> 
>        ??? ERROR: the buffer returned an error (517)
> 
>        Matlab reported that the error occurred at the line:
> 
>        evt = buffer('get_evt', [], host, port);

This is an error that happens if there are no events in the buffer. In more recent versions, read_event returns an empty array (i.e. []), which is what you woudl expect. 

I suggest that you upgrade to the most recent version.


>         May I ask what does the error code (517) means? Where can I find the list of error code for the fieldtripbuffer?

They are defined (in hexadecimal representation, and not in decimal representation as it is printed) in fieldtrip/realtime/buffer/src/message.h. You can convert them for example here http://easycalculation.com/hex-converter.php?hex=0x0205&hexDeci=NaN&hexBin=0001

The error 517 (decimal) is 0205 (hexadecimal), which means GET_ERR. 

best regards,
Robert



----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20100227/e728b754/attachment-0002.html>


More information about the fieldtrip mailing list