<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
Hi Faraz<br>
<br>
I think you should use a different port in the ft_read_header function:<br>
hdr � �= ft_read_header('buffer://localhost:1972')<br>
<br>
51244 is the port where the brainvision server sends the data to. Then the fieldtrip buffer reads it from this port and send is to port 1972. At least if you use the default settings.<br>
<br>
If this still doesn't work, check if your firewall is blocking one of these ports.
<br>
<br>
Hope this helps!<br>
<br>
Best Marianne
<div>Verzonden vanaf mijn BlackBerry�-toestel</div>
<hr>
<div><b>From: </b>Faraz Akram <farsun@gmail.com> </div>
<div><b>Sender: </b>"fieldtrip-bounces@donders.ru.nl" <fieldtrip-bounces@donders.ru.nl>
</div>
<div><b>Date: </b>Wed, 16 Nov 2011 04:52:56 +0100</div>
<div><b>To: </b>fieldtrip@donders.ru.nl<fieldtrip@donders.ru.nl></div>
<div><b>ReplyTo: </b>Email discussion list for the FieldTrip project <fieldtrip@donders.ru.nl>
</div>
<div><b>Subject: </b>Re: [FieldTrip] Need help in real time EEG</div>
<div><br>
</div>
<div dir="ltr"><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Dear�</span><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Marianne</span>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<font color="#222222" face="arial, sans-serif"><br>
</font>
<div>Thanks for your reply.</div>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Yes i started fieldtrip buffer by "ft_realtime_brainampproxy(cfg)", it starts writing EEG data to buffer.</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Now i dont know exactly how to read that buffer.</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
I think there will be no difference in reading from buffer due to difference of amplifier</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Kindly Guide me how you access data from buffer.</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Thanks</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Regards</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
Faraz Akram</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">
<br>
</div>
<br>
<div class="gmail_quote">On Mon, Nov 14, 2011 at 8:00 PM, <span dir="ltr"><<a href="mailto:fieldtrip-request@donders.ru.nl" target="_blank">fieldtrip-request@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">
Send fieldtrip mailing list submissions to<br>
� � � �<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
� � � �<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
or, via email, send a message with subject or body 'help' to<br>
� � � �<a href="mailto:fieldtrip-request@donders.ru.nl" target="_blank">fieldtrip-request@donders.ru.nl</a><br>
<br>
You can reach the person managing the list at<br>
� � � �<a href="mailto:fieldtrip-owner@donders.ru.nl" target="_blank">fieldtrip-owner@donders.ru.nl</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of fieldtrip digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
� 1. Re: Need help in real time EEG (Severens, Marianne)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 14 Nov 2011 11:16:10 +0100<br>
From: "Severens, Marianne" <<a href="mailto:m.severens@maartenskliniek.nl" target="_blank">m.severens@maartenskliniek.nl</a>><br>
To: Email discussion list for the FieldTrip project<br>
� � � �<<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a>><br>
Subject: Re: [FieldTrip] Need help in real time EEG<br>
Message-ID:<br>
� � � �<<a href="mailto:70FC3ACFFB46314EBEAF9101EA45F50E06D145F2FF@smkexch02.maartenskliniek.nl" target="_blank">70FC3ACFFB46314EBEAF9101EA45F50E06D145F2FF@smkexch02.maartenskliniek.nl</a>><br>
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi Faram<br>
<br>
I have a different amplifier, so I'm not sure if it works exactly the same, but I can try to help you.<br>
<br>
Did you first start the fieldtrip buffer that 'reads' the data from the amplifier? You can look up which one you have to use for your amplifier here:
<a href="http://fieldtrip.fcdonders.nl/development/realtime" target="_blank">http://fieldtrip.fcdonders.nl/development/realtime</a><br>
<br>
Best, Marianne<br>
<br>
________________________________________<br>
From: <a href="mailto:fieldtrip-bounces@donders.ru.nl" target="_blank">fieldtrip-bounces@donders.ru.nl</a> [<a href="mailto:fieldtrip-bounces@donders.ru.nl" target="_blank">fieldtrip-bounces@donders.ru.nl</a>] On Behalf Of Faraz Akram [<a href="mailto:farsun@gmail.com" target="_blank">farsun@gmail.com</a>]<br>
Sent: Monday, November 14, 2011 3:56 AM<br>
To: <a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
Subject: [FieldTrip] Need help in real time EEG<br>
<br>
Hi<br>
<br>
I am new to FieldTrip.<br>
<br>
I want to acess realtime EEG data in matlab from my BrainVision recorder.<br>
when i use<br>
<br>
<br>
<br>
hdr � �= ft_read_header('buffer://localhost:51244')<br>
<br>
�it gives an error<br>
<br>
Trying to close socket 3956<br>
??? Error using ==> buffer<br>
ERROR: tcp connection to buffer failed.<br>
<br>
Error in ==> ft_read_header at 815<br>
� � �orig = buffer('get_hdr', [], host, port);<br>
<br>
<br>
<br>
Kindly Guide me what will i have to do<br>
<br>
<br>
<br>
Disclaimer<br>
Vrijgave van de informatie verzonden met dit e-mail bericht is geaccordeerd door de ontvanger en/of zijn behandelend arts. Verstrekking van deze informatie is conform het Privacy reglement van de Sint Maartenskliniek. De informatie is uitsluitend bestemd voor
 de geadresseerde. Gebruik van deze informatie door anderen dan de geadresseerde is, zonder voorafgaande schriftelijke toestemming van de rechthebbende , verboden. De Sint Maartenskliniek staat niet in voor de juiste en volledige overbrenging van de inhoud
 van een gezonden e-mail, noch voor de ontvangst daarvan.<br>
<br>
Sint Maartenskliniek<br>
Hengstdal 3,<br>
6574 NA Ubbergen (bij Nijmegen)<br>
Telefoon 024-3659 911<br>
Telefax 024-3659 204<br>
KvK nummer 41055111<br>
<br>
<br>
<br>
------------------------------<br>
<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>
<br>
End of fieldtrip Digest, Vol 12, Issue 19<br>
*****************************************<br>
</blockquote>
</div>
<br>
</div>
<br>
<hr>
<font face="Verdana" color="Silver" size="1">Disclaimer<br>
Vrijgave van de informatie verzonden met dit e-mail bericht is geaccordeerd door de ontvanger en/of zijn behandelend arts. Verstrekking van deze informatie is conform het Privacy reglement van de Sint Maartenskliniek. De informatie is uitsluitend bestemd voor
 de geadresseerde. Gebruik van deze informatie door anderen dan de geadresseerde is, zonder voorafgaande schriftelijke toestemming van de rechthebbende , verboden. De Sint Maartenskliniek staat niet in voor de juiste en volledige overbrenging van de inhoud
 van een gezonden e-mail, noch voor de ontvangst daarvan.<br>
<br>
Sint Maartenskliniek<br>
Hengstdal 3,<br>
6574 NA Ubbergen (bij Nijmegen)<br>
Telefoon 024-3659 911<br>
Telefax 024-3659 204<br>
KvK nummer 41055111<br>
</font>
</body>
</html>