OpenViBE forum

The OpenViBE community
It is currently Thu Dec 14, 2017 10:09 am

All times are UTC




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

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

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!

Yichuan


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

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.

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