OpenViBE forum

The OpenViBE community
It is currently Mon Dec 10, 2018 10:58 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Oct 03, 2012 9:02 pm 

Joined: Wed Sep 19, 2012 5:48 pm
Posts: 3

Although I've read all time related posters, I still got confused about how time is handled in openvibe. Here are some questions:

1. What exactly is ChunkStartTime and ChunkEndTime? How they are measured and how they are related to time in the signal

2. When the following codes are executed in the process function of a box plugin. What exactly is the time we are getting here. Is it relative to the time when you click the play button in the Designer, or the first signal sample acquired. If it is the former case, how can I get the stimulus time relative to the first signal sample acquired so I can find the location of the event in the signal.

IStimulationSet* l_pStimulations = m_oAlgo0_StimulationDecoder.getOutputStimulationSet();
uint64 l_ui64StimulationDate = l_pStimulations->getStimulationDate(j);

Thanks a lot!


Reply with quote  
PostPosted: Mon Oct 08, 2012 10:02 am 

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

ChunkStartTime is created by the acquisition server upon receiving data, in the designer this time is always relative to the starting of the scenario, as all the data received by the acquisition server while there is no connection is discarded.
ChunkEndTime is calculated from the StartTime, Sampling Frequency and number of samples in the chunk.

As for the stimulus relative to the beginning, I would suggest sending a stimulation from your application which would mark the beginning of the experiment, while the acquisition is already running.


My Weblog Follow me on Twitter

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 2 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 phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.