OpenViBE forum

The OpenViBE community
It is currently Tue Aug 20, 2019 2:55 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Apr 16, 2019 7:39 am 
Offline

Joined: Thu Mar 07, 2019 8:05 am
Posts: 8
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?


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 16, 2019 9:30 am 
Offline

Joined: Wed Oct 31, 2018 9:14 am
Posts: 92
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 16, 2019 10:01 am 
Offline

Joined: Thu Mar 07, 2019 8:05 am
Posts: 8
Thanks! I already tried the Lua box, but I find it creates an additional lag of ~200 ms, just as the other scripting boxes.


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 16, 2019 12:21 pm 
Offline

Joined: Wed Oct 31, 2018 9:14 am
Posts: 92
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:
[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:
File comment: baseline Script
Baseline.txt [657 Bytes]
Downloaded 18 times
File comment: Micro scenario
lua_micro_test.xml [6.2 KiB]
Downloaded 17 times
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.