<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Anton,<br>
<br>
This depends on the decimation rate that you specify, see here:<br>
<a class="moz-txt-link-freetext" href="http://fieldtrip.fcdonders.nl/development/realtime/ctf?s">http://fieldtrip.fcdonders.nl/development/realtime/ctf?s</a>[]=acq2ftx#downsampling_channel_selection_applying_gains<br>
<br>
You can use ft_read_header(buffer) to read out the sampling
frequency and then call ft_read_data to read the data. Here, you can
specify a begin and an endsample, which define the length of the
data the function returns. Prior, you can call ft_read_event to get
the time stamp of the trigger value of interest. If you are
interested in continuously reading data in without relying on
certain events, you can don't need to call ft_read_event.<br>
<br>
In FieldTrip, there are some example functions that you can look at,
<i>e.g. </i><small><i>ft_realtime_asynchronous</i></small> or<i><small>
ft_realtime_synchronous</small></i>, see also here:<br>
<a class="moz-txt-link-freetext" href="http://fieldtrip.fcdonders.nl/tutorial/realtime">http://fieldtrip.fcdonders.nl/tutorial/realtime</a><br>
<br>
From what you wrote I get that the asynchronous type is what you aim
for.<br>
<br>
Best,<br>
Jörn<br>
<pre class="code">
</pre>
<br>
<br>
On 3/27/2012 7:13 PM, Anton Andreev wrote:
<blockquote
cite="mid:CAG3TGCN+1ZV7zaAbGKvm8j3M1arg8pQXRgrfSLaof2hVp7G-vg@mail.gmail.com"
type="cite">Hi,<br>
<br>
I have a question about the fieldtrip buffer. <br>
Does the protocol provides information about the time every sample
has been taken?<br>
<br>
I would like to produce a chunk of data for 300ms or 1 second for
example. <br>
I can build such chunk if I simply sort out samples that are in
the time range of 1 second starting with the time stamp of the
first one. Then again for 1 second and ....<br>
<br>
Thanks,<br>
Anton<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" 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 class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>