<div dir="ltr">Hi Norman,<div><br></div><div>Perhaps the easiest way to accomplish what you want (with maximum control of your codebase) is to use a Matlab <a href="https://www.mathworks.com/help/matlab/ref/timer-class.html">timer</a> and read from the RDA client frequently, then you can pass the chunk of samples to a function implementing your pipeline. </div><div><br></div><div>Another option is to use <a href="https://sccn.ucsd.edu/wiki/BCILAB#Using_existing_external_interfaces">BCILAB</a>.</div><div><br></div><div>If Simulink is an option, you could have a look at <a href="https://bitbucket.org/neatlabs/simbsi/wiki/Home">SimBSI</a> (Simulink for Brain Signal Interfaces). The package is still in beta version so some things may change down the road, but it is fully functional and actively used at the moment. SimBSI leverages many existing functions in Simulink for signal processing and machine learning with flexible data acquisition interfaces (LSL, TCP/IP, UDP, among others) with online-capable brain imaging functions. If you need to write your own processing block, check <a href="https://www.mathworks.com/help/simulink/ug/create-your-own-simulink-block.html">Matlab's doc's pages</a> and you can find also many tutorials on Youtube.</div><div><br></div><div>Whatever you do, beware that the processing time needs to be less than the acquisition time for a chunk of data, otherwise, samples will accumulate and the pipeline won't be real-time.<br></div><div><br></div><div>I hope this helps, best,</div><div>Alejandro</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 9:49 AM Norman Sinnigen <<a href="mailto:norman.sinnigen@student.uni-tuebingen.de">norman.sinnigen@student.uni-tuebingen.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="en-DE"><div class="m_-6708515947041434795WordSection1"><p class="MsoNormal"><span lang="en-DE">Is there a function or software package, suitable for Matlab, (except Fieldtrip) enabling to create a buffer for real-time EEG data and perform calculations? <u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE">The processing pipeline is the following: EEG data is recorded using BrainVision Recorder and sent via TCP/IP (RDA client) to Matlab. The incoming EEG data’s point size is 63x10. Performing calculation on the incoming EEG data takes time, which is why I am looking for a way of creating a buffer enabling to perform calculation on a specific window of incoming EEG data packages, while further incoming EEG data packages are stored in a buffer, waiting to be further used for calculation.<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="en-DE">Fieldtrip offers this service, but converting data from EEG to Fieldtrip and back requires too much time. I found MatRiver, but couldn’t find a way to download it, since download is not offered and the given email doesn’t work.<u></u><u></u></span></p><p class="MsoNormal"><span lang="en-DE"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="en-DE"> <u></u><u></u></span></p></div></div>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Alejandro Ojeda <br>Neural Engineering Lead at NEATLabs<br><br>Ph.D. candidate in the Electrical & Computer Engineering Department, University of California San Diego, USA<br><pre cols="72"><a href="https://www.researchgate.net/profile/Alejandro_Ojeda" target="_blank">ResearchGate</a> <a href="https://github.com/aojeda" target="_blank">GitHub</a></pre></div></div></div></div></div>