Stimulus presentation using Matlab script

Forum for discussion on different user applications
Locked
kamrun
Posts: 2
Joined: 15 Mar 2008, 22:47

Stimulus presentation using Matlab script

Post by kamrun » 11 Nov 2009, 17:09

Hi,
Can I call Matlab function for stimulus presentation in BCI2000? If so, how?
Thanks,
Kamrun

gschalk
Posts: 615
Joined: 28 Jan 2003, 12:37

Matlab ...

Post by gschalk » 12 Nov 2009, 08:32

Kamrun,

You can definitely use Matlab for stimulus presentation in BCI2000. Please check out the documentation for the Matlab filter:

http://www.bci2000.org/wiki/index.php/U ... tlabFilter

More general information about using Matlab within BCI2000:

http://www.bci2000.org/wiki/index.php/P ... sed_Filter

and the FieldtripBuffer, which allows for asynchronous processing:

http://www.bci2000.org/wiki/index.php/C ... TripBuffer

In general, I am not sure that Matlab is the best approach for writing code for stimulus presentation. In fact, unless you use specialized toolboxes, the timing of stimulus presentation will be quite poor.

You can of course use the BCI2000 StimulusPresentation module to present stimuli. This will give you good timing performance. You can also modify the code if you need more specialized types of stimulus presentation -- we have good documentation on how to do that, but you need to program in C++. If you would like to use a different high level language, you may want to use Python for stimulus presentation:

http://www.bci2000.org/wiki/index.php/C ... s:BCPy2000

I hope this helps.

Gerv

kamrun
Posts: 2
Joined: 15 Mar 2008, 22:47

Matlab for stimulus presentation in BCI2000.

Post by kamrun » 12 Nov 2009, 10:08

Thanks, Gerwin.

I was trying to use my existing MATLAB code for custom stimuli presentation within BCI2000 framework.
My impression was MatlabFilter or FieldTrip buffers could be used for the signal processing module only. I will see how it works for the stimuli presentation.
I know only Matlab of all the three (C++, Python, Matlab)!! So, I am kind of limited there.

Kamrun

Locked

Who is online

Users browsing this forum: No registered users and 32 guests