<div dir="ltr"><div>Dear <span>Jörn,</span></div><div><span><br></span></div>   Thanks for your answer. I use <span style><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px">CTF/VSM MedTech System. I use 364 channels and the sampling rate is 1200. The decimation rate is 1. </span></font></span><div>


<span style><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px">    As I saw in my recording there are two reasons for crashing in matlab session one of them is about transferring data which rarely occurs when the system is freshly restarted and the second one is related to reading data from buffer. When the number of samples of data which should be read is high we may see such problem. </span></font></span><div>


<font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px">    I wanted to check the timing of MEG System data stream and I used a m-file similar to what is published in fieldtrip website (</span></font><a href="http://fieldtrip.fcdonders.nl/example/measuring_the_timing_delay_and_jitter_for_a_real-time_application" target="_blank">http://fieldtrip.fcdonders.nl/example/measuring_the_timing_delay_and_jitter_for_a_real-time_application</a><span style="color:rgb(51,51,51);font-family:Calibri,Geneva,Arial,Verdana,sans-serif;font-size:12px;line-height:18px">), I attach the mfile to this email. When I run it step by step there is no problem, but when I run the whole file the problem of crashing matlab is occurred exactly when "i=2"  and we are on the line of reading the data (<i>dat = buffer('get_dat', [s(i-1),s(i)],host,port); </i>). The problem occurs even if I restarted the computer just before running this file.</span></div>


<div><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px">    On the other hand, although when</span></font><span style="line-height:18px;color:rgb(51,51,51);font-size:12px;font-family:Calibri,Geneva,Arial,Verdana,sans-serif"> the computer is freshly restarted we won't see any crash in matlab session during transferring data, but sometimes we see the message of "</span><span><i>Internal Converter thread does not keep up with load</i></span><span style="line-height:18px;color:rgb(51,51,51);font-size:12px;font-family:Calibri,Geneva,Arial,Verdana,sans-serif">" in the <i>acq2ft </i>terminal in acquisition system. This problem is depend on the rate of sending the data which is related to number of the channels and sampling rate, when we have more sampling rate or more number of channels we will see this message more times and when this message show on the screen, no data transfer to field trip buffer and we can't read data on the other computer. </span></div>


<div><div><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px"><br></span></font></div><div><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px">I appreciate it if you help me solve both of these problems about matlab crash and error in data transferring.</span></font></div>


<div><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px"><br></span></font></div><div><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px">All the best,</span></font></div>


<div><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px">Soheila</span></font></div><div><font color="#333333" face="Calibri, Geneva, Arial, Verdana, sans-serif"><span style="font-size:12px;line-height:18px"> <br>


</span></font><div class="gmail_quote">On Thu, Feb 16, 2012 at 4:36 AM, "Jörn M. Horschig" <span dir="ltr"><<a href="mailto:jm.horschig@donders.ru.nl" target="_blank">jm.horschig@donders.ru.nl</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Dear Soheila,<br>
    <br>
    we were facing the same problem here. Presumably, there is some
    problem in the shared memory module that the buffer is using. Right
    now, however, we could not find out where the error precisely comes
    from, so our best work around is to restart the computer prior
    recording and optimize settings, such as channels and
    sampling/decimation rate of acq2ft. In our lab, we managed to find
    near-optimal settings, so that the buffer crashes only rarely
    (actually, I never saw it crashing when the acquisition computer was
    freshly restarted). Note that a lower number of channels or higher
    decimation does not mean that it runs more stable.  It seems to be
    literally a trial-and-error approach :/ <br>
    <br>
    In order to track this down further, we need some more information,
    e.g. what MEG system are you using? What's your sampling rate, how
    many channels do you put into the buffer, and what's your decimation
    rate? It would be great if you could send me that information so
    that we can maybe try to track this down.<br>
    <br>
    Best regards,<br>
    Jörn<div><div><br>
    <br>
    On 2/14/2012 5:42 PM, Soheila Samiee wrote:
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">Dear group,<br>
        <br>
        I use FieldTrip for real-time processing of MEG signals using
        shared memory and field trip buffer in a machine other than
        acquisition system. I use matlab for reading the buffer and
        processing the data. <br>
        During my data acquisition and sending it to other computer with
        <i>acq2ft</i> in linux, I face a problem. After sending some
        blocks of data, this message: "<i>Internal Converter thread does
          not keep up with load</i>" is shown in the terminal of <i>acq2ft</i>
        and in my matlab session I see an error : "ERROR: the buffer
        returned an error (517)". It does not depend on sampling rate of
        data in acquisition system. The problem often solve when I
        restart the computer which receives the data, but after some
        minutes of transferring the data I see the message again.  <br>
        <br>
        Would you please help me in solving this problem?<br>
        Best Wishes,<br>
        Soheila<br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
fieldtrip mailing list
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour 
Centre for Cognitive Neuroimaging
Radboud University Nijmegen 
Neuronal Oscillations Group

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: <a href="mailto:jm.horschig@donders.ru.nl" target="_blank">jm.horschig@donders.ru.nl</a>
Tel:    <a href="tel:%2B31-%280%2924-36-68493" value="+31243668493" target="_blank">+31-(0)24-36-68493</a>
Web: <a href="http://www.ru.nl/donders" target="_blank">http://www.ru.nl/donders</a>

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
  </div>

<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div></div></div></div>