Sending stimulations from Python Script to acquisition serve

Making & changing box plugins and external apps
Post Reply
entrity
Posts: 6
Joined: Thu Feb 08, 2018 7:11 pm

Sending stimulations from Python Script to acquisition serve

Post 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?

jtlindgren
Posts: 775
Joined: Tue Dec 04, 2012 3:53 pm
Location: INRIA Rennes, FRANCE

Re: Sending stimulations from Python Script to acquisition s

Post 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

entrity
Posts: 6
Joined: Thu Feb 08, 2018 7:11 pm

Re: Sending stimulations from Python Script to acquisition s

Post 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.)

Post Reply