Page 1 of 1

Controlled Visual Feedback implementation

Posted: 02 May 2024, 12:30
by bcilab
Hi,
I'm trying to implement a BCI protocol with visual feedback controlled by Mu rhythms. I want to control the filling of a bar.
The experiment will be like the cursor task, but I want to replace the cursor with the filling of the bar, similar to a progress bar.
What is the easier way to do this?
Is the BCPy2000 the best option to do that? Or I need to use Unity?
Thanks in advance.

Re: Controlled Visual Feedback implementation

Posted: 02 May 2024, 17:24
by mellinger
The answer depends on which language you are most proficient in.
You can code this in C++ (BCI2000 native), C# (Unity), or Python (BCPy2000).

In C++, you can just combine a few RectangularShape objects to obtain what you need:
https://www.bci2000.org/mediawiki/index ... hape_Class

Re: Controlled Visual Feedback implementation

Posted: 16 May 2024, 16:44
by bcilab
Thank you very much for the help.
For Unity, how can I add the control of the bar ? Can I add it directly to the cursor task batch?

Re: Controlled Visual Feedback implementation

Posted: 17 May 2024, 11:11
by mellinger
You may use the UnityBCI2000 project for your purpose:
https://www.bci2000.org/mediawiki/index ... I2000Unity
https://github.com/neurotechcenter/UnityBCI2000

In Unity, you will get the so-called "Control Signal" of BCI2000, and can use it to control a bar.
You will control all aspects of BCI2000 from Unity, so you will not need to worry about batch files.