Page 1 of 1

StimulusPresentation values

Posted: 09 Mar 2009, 07:25
by Marco Rotonda
Hi there,
actually I'm using a custom SignalProcessing module based on FiledTripBuffer.
In the example at http://www.bci2000.org/wiki/index.php/P ... rip_buffer the examples are based on Feedback Demo Task and the code "1" moves up, while "-1" moves down and "0" doesn't move at all.
I wish to know which codes expects and acts upon StimulusPresentation.
If something happen in FTB I wish to give a stimuls, otherwise another. Where are defined this codes? How I can setup this codes on BCI2000?

thanks,

Marco

StimulusPresentation ....

Posted: 09 Mar 2009, 20:48
by gschalk
Marco,

At present the StimulusPresentation task simply presents stimuli in random or deterministic order as described on

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

What you basically have to do is to
1) set up all stimuli in StimulusPresentation
2) have the FTB compute whatever stimulus is to be presented, and stick the result in a particular state, e.g., ideally the existing StimulusCode state
3) change the code of StimulusPresentation so that it presents the stimulus defined in the StimulusCode rather than the next one in the sequence or the next random one

In order to do that, it seems to me that all you would have to do is to overwrite the

OnNextStimulusCode function with basically something like

return(State("StimulusCode"));

or so. Please also see

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



I hope this helps.

Gerv