OpenViBE forum

The OpenViBE community
It is currently Sat Dec 16, 2017 8:36 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri May 31, 2013 4:30 pm 
Offline

Joined: Tue Dec 04, 2012 12:15 pm
Posts: 6
I would like to know if it is possible to send messages to the INF console at the bottom of the OpenVibe screen designer.

Lets use a simple scenario connecting the 2 modules: "Clock stimulator" and "Run Command"

"Clock stimulator" defined as:
Code:
Intervalstimulation interval (in sec): 10.00000
Stimluation: OVTK_StimulationId_Label_01


"Run Command" defined as:
Code:
Stimulation 1: OVTK_StimulationId_Label_01
Command 1: START notepad


So, each 10 seconds it opens the application notepad.

What I want to do is also to send a message each 10 seconds to the console at the botton of the screen. For example: "Opening notepad..."


Regards
Pedro


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 10, 2013 11:10 am 
Offline

Joined: Tue Nov 02, 2010 8:51 am
Posts: 239
Location: Mensia Technologies Paris FR
Hello Pedro,

an easy way to display arbitrary messages would be to use the Lua stimulator box.

Add an input to it via right click menu and use it with a simple script such as this:

Code:
function initialize(box)
end

function uninitialize(box)
end

function process(box)
   while true do
      if (box:get_stimulation_count(1)) then
         box:log("Info", "test")
         box:remove_stimulation(1, 1)
      end
      box:sleep()
   end
end


This program will display a message "test" every time it receives a stimulation. For more info look at the lua box documentation here:
http://openvibe.inria.fr/documentation/ ... lator.html

Cheers
Jozef

_________________
My Weblog Follow me on Twitter


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


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.