Real Time Processing in Brain storm

Hi,
We have a gTec EEG device and would like to process data using Brainstorm in real time. Is there, or is going to be, real time processing feature in Brainstorm? Has anyone tried Brainstorm for real time processing? I appreciate sharing any experience.
Best
AY

Hello,

We are working on neurofeedback loops that use the FieldTrip buffer to collect the real time MEG recordings and Brainstorm to process them and display the feedback.
This code is still at an experimental level and is currently not distributed with Brainstorm.

Brainstorm in itself is not going to do the real-time communication with the acquisition device, first you need to find a way to collect the data in a real time loop, then you can add Brainstorm calls if you want to use some of its features (visualization, artifact cleaning, source reconstruction, frequency analysis…)

Cheers,
Francois

Thank you. The device gives us data in Simulink, so we can call Brainstorm. If the experimental code works on some levels, we’d be happy to test it and report feedback.
Best
A

I’m sorry we do not have anything that is worth sharing at this point.
All we have is hard coded for the CTF MEG system we have here, together with a loop for reading from the FieldTrip buffer.
As you’re not using one or the other, there is really nothing interesting that you could get from this code.

The basic idea is to build a database that contains all the static information you have (subject MRI or template, electrodes positions, forward model, inverse model).
Then import a small EEG file acquired offline. Let’s say it is saved data_test.mat.

In your realtime loop: read a small data block from your acquisition device, replace the .F and .Time fields in data_test.mat.
Then you can run display functions or processes on this block of real-time recordings.
For ideas of what you can do with those files, see the functions brainstorm3/toolbox/script/tutorial_*.m

Cheers,
Francois

Thank you. It is fine. If we come up with sth interesting, we’ll let others know. Thanks for the tips.
Best
A

Hi there:

The building blocks of the RT elements are available here. They are described in this publication. Hope this helps.

Hi,
Thanks. Helps for sure.
Best
A

[QUOTE=Sylvain;6796]Hi there:

The building blocks of the RT elements are available here. They are described in this publication. Hope this helps.[/QUOTE]