Stimulation time and date meaning

About the GUI application to design signal processing pipelines
Post Reply
benry
Posts: 12
Joined: Thu Sep 22, 2011 3:59 pm
Location: Milan, Italy
Contact:

Stimulation time and date meaning

Post by benry »

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.

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

Re: Stimulation time and date meaning

Post by jlegeny »

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

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Stimulation time and date meaning

Post by lbonnet »

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: Select all

# 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: Select all

# 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 !

Post Reply