Send stimulation after a certain after a certain stimulation

Concerning processing components: filters, file load/save, visualizations, communication ...
Post Reply
Nico A.
Posts: 8
Joined: Thu Mar 07, 2019 8:05 am

Send stimulation after a certain after a certain stimulation

Post by Nico A. »

Is there a already a box (or combination of boxes) that accomplishes this:

- listen for a certain type of Stimulation
- wait a specified time, and then send a Stimulation of a certain specified type?

Thibaut
Posts: 144
Joined: Wed Oct 31, 2018 9:14 am

Re: Send stimulation after a certain after a certain stimula

Post by Thibaut »

Hi,
my first tip starting with OpenViBE open all the example scenarios to see which boxes are proposed.^^
To filter stimulation you have the box Stimulation Filter.
To send stimulatio nafter time you have the lua box.
Thibaut

Nico A.
Posts: 8
Joined: Thu Mar 07, 2019 8:05 am

Re: Send stimulation after a certain after a certain stimula

Post by Nico A. »

Thanks! I already tried the Lua box, but I find it creates an additional lag of ~200 ms, just as the other scripting boxes.

Thibaut
Posts: 144
Joined: Wed Oct 31, 2018 9:14 am

Re: Send stimulation after a certain after a certain stimula

Post by Thibaut »

Weird with a mirco test the Lua box haven't lag.
Test with this scenario and this script (replace txt extension by lua). My log is :

Code: Select all

[INF] At time 0.000 sec <Box algorithm::(0x00007a62, 0x00007a93) aka Lua Stimulator> Lua script terminated
[INF] At time 0.008 sec <Box algorithm::(0x00001fac, 0x00006047) aka Stimulation listener> For input 0 with name Stimulation stream 1 got stimulation 32769[OVTK_StimulationId_ExperimentStart] at date 0.000 sec and duration 0.000 sec
[INF] At time 5.008 sec <Box algorithm::(0x00001fac, 0x00006047) aka Stimulation listener> For input 0 with name Stimulation stream 1 got stimulation 32775[OVTK_StimulationId_BaselineStart] at date 5.000 sec and duration 0.000 sec
[INF] At time 15.008 sec <Box algorithm::(0x00001fac, 0x00006047) aka Stimulation listener> For input 0 with name Stimulation stream 1 got stimulation 32776[OVTK_StimulationId_BaselineStop] at date 15.000 sec and duration 0.000 sec
[INF] At time 17.008 sec <Box algorithm::(0x00001fac, 0x00006047) aka Stimulation listener> For input 0 with name Stimulation stream 1 got stimulation 32770[OVTK_StimulationId_ExperimentStop] at date 17.000 sec and duration 0.000 sec
The 0.0008 is the time to load scenarios scripts but there is from the beginning to the end
Attachments
Baseline.txt
baseline Script
(657 Bytes) Downloaded 64 times
lua_micro_test.xml
Micro scenario
(6.2 KiB) Downloaded 64 times

Post Reply