I'm writing a Python script for a Python Script box. How can I send stimulations to the acquisition server box?
I'd like to mimic some of the performance of the P300 speller. Looking at the implementation in openvibe-1.3.0-src/plugins/processing/simple-visualisation/src/box-algorithms/ovpCBoxAlgorithmP300SpellerVisualisation.cpp, it appears to me that I need to send OVTK_StimulationId_NonTarget and OVTK_StimulationId_Target stimulations.
Can anyone indicate a document or share instructions telling me how to accomplish this through the Python interface?
Sending stimulations from Python Script to acquisition serve
-
- Posts: 775
- Joined: Tue Dec 04, 2012 3:53 pm
- Location: Helsinki, Finland
Re: Sending stimulations from Python Script to acquisition s
Hello Entrity, there's a python example of that in the openvibe source tree,
https://gitlab.inria.fr/openvibe/extras ... -client.py
maybe that helps? Some more detail can be found here,
http://openvibe.inria.fr/tcp-tagging/
You can use stimulation listener box after the acquisition client to get a more clear idea of the kind of timeline the visualizer sends. The target/nontarget indicate if the flash is the one the user should attend to, or not (given the letter to be spelled).
Best,
Jussi
https://gitlab.inria.fr/openvibe/extras ... -client.py
maybe that helps? Some more detail can be found here,
http://openvibe.inria.fr/tcp-tagging/
You can use stimulation listener box after the acquisition client to get a more clear idea of the kind of timeline the visualizer sends. The target/nontarget indicate if the flash is the one the user should attend to, or not (given the letter to be spelled).
Best,
Jussi
Re: Sending stimulations from Python Script to acquisition s
Thanks, Jussi. Seeing those examples was very helpful.
(I see that I had better try another strategy, however. I want the feedback that the P300 Speller Visualisation gives, such as showing what the latest prediction was, and I don't think I can figure out how to replicate the algorithm before my deadline. I'll start a new thread.)
(I see that I had better try another strategy, however. I want the feedback that the P300 Speller Visualisation gives, such as showing what the latest prediction was, and I don't think I can figure out how to replicate the algorithm before my deadline. I'll start a new thread.)