Page 1 of 1

Trigger fror two Sign Change Operators

Posted: Mon May 02, 2016 4:17 pm
by hercp
I have two Sign Change Operators. When both are true, I would like to have a sound generated through the Sound player. Is there an easy way to detect when the output of both Sign Change Operators are 1 and thus trigger the Sound player?

Re: Trigger fror two Sign Change Operators

Posted: Tue May 17, 2016 9:24 am
by jtlindgren
Hi Hercp,

thats a very good question! OpenViBE doesn't currently have boxes that would do generic logic/arithmetic with stimulations. However, you can use the Lua stimulator box to this purpose. To be specific, you add two inputs to the Lua box, and then write the simple logic in Lua, inserting the result to the output of the Lua box, which you then forward to Sound Player in Designer. You can find examples of Lua scripts among the bci-scenarios/ and box-tutorials/lua/ bundled with OpenViBE.

(its also possible to do the same thing with Python and using the Python scripting box, but it might be a bit easier with Lua)


Hope this helps,
Jussi