<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div style="font-family: lucida console,sans-serif;"><font size="4"><span style="font-size: 10pt;">Hi Jörn,<br>I am glad to get your suggestions and comments.<br>I tested on the same PC and the port was open.</span></font></div><div style="font-family: lucida console,sans-serif;"><font size="4"><span style="font-size:10pt;">still the same problem<br>I really appreciated your time and help. Thank you again! <br><br>best regards<br>Jie</span></font></div><div><br></div>  <div style="font-family: bookman old style, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> ""Jörn M. Horschig"" <jm.horschig@donders.ru.nl><br> <b><span
 style="font-weight: bold;">To:</span></b> FieldTrip discussion list <fieldtrip@science.ru.nl> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, June 18, 2012 8:58 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [FieldTrip] TMSI2FiledTrip real time buffer<br> </font> </div> <br>
<div id="yiv1405259824">
  

    
  
  <div>
    Dear Jie,<br>
    <br>
    I'm afraid I cannot really help you with your particular problem,
    but some basics that you should generally be covered and may thus
    help nonetheless:<br>
    <br>
     - when using cfg.dataset = '(...) localhost (...) ' make sure that
    the shared memory/buffer is running locally, i.e. on the same
    computer. This involves starting tmsi2ft on that computer.<br>
     - if it is running on a different computer, be sure to not use
    localhost but the corresponding computer's name or ip<br>
     - make sure that the port (here 1972) is open (i.e. not blocked by
    some firewall or in use by another program) and that the buffer
    accesses it<br>
     - maybe you could try to 'ping' the ip where the buffer is supposed
    to run to check whether everything is set up correctly (not sure if
    this actually works)<br>
    <br>
    I guess you already saw this page (but I thought it'd be wise to
    point to it nonetheless):<br>
    http://fieldtrip.fcdonders.nl/development/realtime/tmsi?s[]=tmsi<br>
    <br>
    I hope that one of these comments help.<br>
    <br>
    Best,<br>
    Jörn<br>
    <br>
    On 6/15/2012 7:35 PM, jie liu wrote:
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:bookman old style, new york, times, serif;font-size:12pt;">
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">Hi All,</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
"> </span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">The hardware
            I used is TMSI refa 128 working with
            usb (driver is fusbi version 6.0.0.76.) windows xp+service
            pack3.</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">I was using
            TMSi-to-Fieldtrip interface from
            TMSi<span style="">  </span>to export data
            to the Fieldtrip
            buffer</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">I tried the
            ft_realtime_signalviewer function to get
            the data as<span style="">  </span>suggested.</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">The code I
            was using:</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">cfg<span style="">               
            </span>= [];</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">cfg.blocksize<span style="">     
            </span>= 1;<span style="">                           
            </span>%
            seconds</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">cfg.dataset<span style="">       
            </span>= 'buffer://localhost:1972';<span style="">    </span>%
            where to read the data</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">ft_realtime_signalviewer(cfg)</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">I got some
            errors:</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">Warning:
            could not read header from</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">buffer://localhost:1972,
            retrying in 1</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">second</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">> In
            ft_read_header at 894</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
"><span style="">  </span>In
            ft_realtime_signalviewer at 72</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
"><span style="">  </span>In
            test_Buffer_draw at 6</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">My question
            is that do I need to open the FieldTrip
            buffer server before I start the TMSi-to-Fieldtrip interface
            from TMSi? Do I
            need to do some kinds of initialization in FieldTrip?</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">I would
            appreciate very much if you could give me a
            guide or step by step instruction on how to use real time
            buffer in FieldTrip
            with TMSi.</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">Thank you all
            for the time and help!</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">Best wishes</span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
"> </span></div>
        <div class="yiv1405259824MsoNormal"><span style="font-size:12.0pt;line-height:115%;
">Jie</span></div>
        <div class="yiv1405259824yui_3_2_0_111_133976917382354" style="
font-family:times new roman, new york, times, serif;font-size:14pt;">
          <div class="yiv1405259824yui_3_2_0_111_133976917382361" style="
font-family:times new roman, new york, times, serif;font-size:12pt;"><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="yiv1405259824mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
fieldtrip mailing list
<a rel="nofollow" class="yiv1405259824moz-txt-link-abbreviated" ymailto="mailto:fieldtrip@donders.ru.nl" target="_blank" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</pre>
    </blockquote>
    <br>
    <br>
    <pre class="yiv1405259824moz-signature">-- 
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 rel="nofollow" class="yiv1405259824moz-txt-link-abbreviated" ymailto="mailto:jm.horschig@donders.ru.nl" target="_blank" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

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

</div><br>_______________________________________________<br>fieldtrip mailing list<br><a ymailto="mailto:fieldtrip@donders.ru.nl" href="mailto:fieldtrip@donders.ru.nl">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><br> </div> </div>  </div></body></html>