Dinamic matrices

Forum for software developers to discuss BCI2000 software development
Locked
guillermogeb
Posts: 2
Joined: 23 Apr 2008, 18:07

Dinamic matrices

Post by guillermogeb » 18 Dec 2008, 16:00

Hi, I want to build a dinamic matrix fro a P300 BCI application. I´m using appconnector to communicate with BCI2000. I don't know how can I change the Icon file of a matrix element from my external application on the fly, while I´m running the P300 app. I think that I can use appconnector to send the info, but I don´t know the format of the message. Of course that the matrices are submatrices in order to create dinamic menues.

Thanks

mellinger
Posts: 1341
Joined: 12 Feb 2003, 11:06

Post by mellinger » 22 Dec 2008, 09:09

Hi Guillermo,

this is an interesting problem.
Unfortunately, dynamically modifying icons is not supported by the standard P3Speller component, so you would need to modify it in order to achieve your goal.

Without having details about what you want to do, it is difficult to suggest a certain approach. I can see two main options:
1) Create a new class derived from ImageStimulus that responds to commands provided over an external connection, e.g., by connecting to a UDP socket, and modify the standard P3Speller to use this class when displaying icons.
2) Add an option to the P3Speller such that it feeds external input (e.g., from a UDP socket) into its Enter() function inherited from the Speller base class. Then, writing <GOTO x> into that connection will allow you to switch between multiple menus, which may have different icons.

Choosing between the two options will depend on how much freedom you need in combining icons, and switching between them. 1) is a bit more complex to implement, 2) is more complex to configure, as it requires each possible combination of icons to be represented by a separate submatrix.

HTH,
Juergen

Locked

Who is online

Users browsing this forum: No registered users and 0 guests