Page 1 of 1

Sending stimulations from Python Script to acquisition serve

Posted: Mon Feb 12, 2018 9:42 pm
by entrity
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?

Re: Sending stimulations from Python Script to acquisition s

Posted: Wed Feb 14, 2018 9:14 am
by jtlindgren
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

Re: Sending stimulations from Python Script to acquisition s

Posted: Thu Feb 15, 2018 2:49 am
by entrity
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.)