<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hi Sasha,<br><br>You are trying to read the header in realtime from the machine where you started the matlab session, i.e. localhost:1972. Is this the same machine where you wrote that header?<br><br>Best,<br>Arjen<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><b>Van: </b>"Alejandro Vicente Grabovetsky" <a.vicente.grab@gmail.com><br><b>Aan: </b>fieldtrip@science.ru.nl<br><b>Verzonden: </b>Donderdag 26 juni 2014 17:14:48<br><b>Onderwerp: </b>[FieldTrip] Realtime Buffer error from Matlab but not in terminal<br><br><div dir="ltr"><div><div><div>Dear FT,<br><br></div>I'm attempting to test the realtime at the DCCN from within the simple tutorial at:<br><a href="http://fieldtrip.fcdonders.nl/faq/how_should_i_get_started_with_the_fieldtrip_realtime_buffer" target="_blank">http://fieldtrip.fcdonders.nl/faq/how_should_i_get_started_with_the_fieldtrip_realtime_buffer</a><br>
<br></div>The tutorial works very well from within the terminal, but when I attempt to start an interactive matlab session and do<br><pre class="">while true
  hdr = ft_read_header('buffer://localhost:1972')
  pause(1)
end<br></pre>it gives me an error from the "buffer" mex:<br><br>ERROR: failed to create socket (1)<br><br></div>Thanks in advance,<br>Sasha<br><div><div><div><br><br clear="all"><div><div><div><div><div><br>-- <br>
Vicente Grabovetsky, Alejandro (Sasha)<br>Postdoctoral researcher<br>Donders Centre for Cognitive Neuroimaging<br><a href="http://www.doellerlab.com" target="_blank">http://www.doellerlab.com</a>
</div></div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>fieldtrip mailing list<br>fieldtrip@donders.ru.nl<br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote><br><br><br>-- <br><div><span name="x"></span>Donders Institute for Brain, Cognition and Behaviour<br>Centre for Cognitive Neuroimaging<br>Radboud University Nijmegen<br><br>Email:  a.stolk@donders.ru.nl<br>Phone:  +31(0)243 68294<br>Web:    www.arjenstolk.nl<span name="x"></span><br></div></div></body></html>