OpenViBE forum

The OpenViBE community
It is currently Tue Jun 18, 2013 4:59 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Oct 12, 2011 1:31 pm 
Offline

Joined: Thu Sep 22, 2011 3:59 pm
Posts: 11
Location: Milan, Italy
Hi,
maybe this is a newbe question, since I am a newbe, but I could not find an answer:

Using the "stimulation listener" I can get information about "when" a stimulation occurs in my dataset, but I get two numbers saying at which "time" and at which "date" it occurred.

But in which unit? What do they represent?
How could I relate these values with the time in mseconds from the beginning of the recording?

Thanks in advance.


Top
 Profile  
 
PostPosted: Wed Oct 12, 2011 3:47 pm 
Offline

Joined: Tue Nov 02, 2010 8:51 am
Posts: 222
Location: Inria Rennes FR
Since OpenViBE 0.11.0 the time is displayed in seconds.

Before the time was displayed in the internal format which is discussed here: http://stickyvibe.tuxfamily.org/blog/?p=121. In order to convert this time to seconds you have to divide the number by 2^32.

Cheers
Jozef

_________________
My Weblog Follow me on Twitter


Top
 Profile  
 
PostPosted: Mon Oct 17, 2011 12:38 pm 
Offline
Site Admin

Joined: Wed Oct 07, 2009 12:11 pm
Posts: 414
Hi benry!

We recently released the 0.12.0 version of openvibe.
This new version includes a patch to the time formatting. Now every log messages are printed with time in seconds.
You can set the format and precision you want to see by modifying your configuration file.
The configuration tokens modify the format for the log file (the file in dist/log/):
Code:
# to enable the hexadecimal print (0x----)
Kernel_FileLogWithHexa = True
# to log the time in second or in 32:32 fixed point values
Kernel_FileLogTimeInSecond = False
# If the log time in seconds is enabled, set the number of digits after the point
Kernel_FileLogTimePrecision = 3


Or for the Designer console :
Code:
# to enable the hexadecimal print (0x----)
Designer_ConsoleLogWithHexa = false
# to log the time in second or in 32:32 fixed point values
Designer_ConsoleLogTimeInSecond = True
# If the log time in seconds is enabled, set the number of digits after the point
Designer_ConsoleLogTimePrecision = 3


I hope this will be helpful for you!

Laurent

_________________
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 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:  
POWERED_BY
Translated by MaĆ«l Soucaze © 2009 phpBB.fr