<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Teris<br><br>On 22 Feb 2010, at 10:00, teris tam wrote:<br><br><blockquote type="cite">Dear Fieldtrip experts,<br></blockquote><blockquote type="cite">       I am trying to read event data from fieldtripbuffer in matlab using read_event(), but I receive the following error:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">       ??? ERROR: the buffer returned an error (517)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">       Matlab reported that the error occurred at the line:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">       evt = buffer('get_evt', [], host, port);<br></blockquote><br>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. <br><br>I suggest that you upgrade to the most recent version.<br><br><br><blockquote type="cite">        May I ask what does the error code (517) means? Where can I find the list of error code for the fieldtripbuffer?<br></blockquote><br>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 <a href="http://easycalculation.com/hex-converter.php?hex=0x0205&hexDeci=NaN&hexBin=0001">http://easycalculation.com/hex-converter.php?hex=0x0205&hexDeci=NaN&hexBin=0001</a><br><br>The error 517 (decimal) is 0205 (hexadecimal), which means GET_ERR. <br><br>best regards,<br>Robert<br><div><br></div><div><br></div></body></html><p>----------------------------------</p>
<p>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.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>