Time delays

Come here to discuss about OpenViBE in general!
Post Reply
jgonzalez
Posts: 2
Joined: Fri May 04, 2018 2:08 pm

Time delays

Post by jgonzalez »

Hi!
I'm running some simulations with OpenViBE and I found out that I have some time delays in my .ov reccorded files.
I converted my .ov file to .mat using the fonction convert_ov2mat that Jussi developed. Then I saw that I have time delays in the time values associeted to each stimulation in the .ov file if I compare them with the time values I get using a Stimulation Listener box in the OV scenario that recorded that file. What is curious is that these delays are not constant.
For the moment I'm not worried about what is generating those delays. But I would like to know if the delays are consistant between stimulations and EEG data. By now, I just can think of trying to show in the console messages the associeted EEG values to each stimulation, in the same way the Stimulation Listener does. Is there any tool that allows me to do that.
Any other ideas are welcome!

Best,

Juliana

Thibaut
Posts: 264
Joined: Wed Oct 31, 2018 9:14 am

Re: Time delays

Post by Thibaut »

I'm not sure I understood everything, tell me if I'm wrong :
1 - The conversion between ov and mat does not cause the delay, it was present before
2 - The ov mat have a delay between the stimulation listener
3 - the delay is not regular
4 - In case of delay are random you wan't to show the value on the log at this moment

Can you give me a little stimuluation listener output and the corresponding data.
Have you test to save your acquisition with stimulation in gdf (or csv) and the deay is always here ?

jgonzalez
Posts: 2
Joined: Fri May 04, 2018 2:08 pm

Re: Time delays

Post by jgonzalez »

Hello Thibaut!

Thanks for your answer and feedback!
About the points you mention, I think that you got me right:
1 - You're right. I was just mentioning convert_ov2mat fonction to let you know where my .mat data was coming from.
2 - Yes, the timestamps associated to stimulations in .ov file have delays compared to the timestamps the Stimulation Listener shows.
3 - Yes. If I compare the timestamps I get from the Listener with the ones from the .ov, there is not even one delay value equal to another. They are completely random.
4 - As there are delays, and they are also random, I want to show in the console messages the EEG value associated to each it stimulation the Stimulation Listener gives me.

I saved my simulation in different types of files as you suggested. By now I have just analysed the .csv file. The .csv has time delays as well if I compare it with the Stimulation Listener output.
When compearing between files, the .ov and .csv have different timestamps for the stimulations but I observed that those delays are more regular (there isn't a constant delay, but some delay values are repeated).
What I found interesting when analizing the .csv file is that there are two timestamps associated to each stimulation. If I understood well, the time values that we have in the first column corresponds to the sampling time, i.e. the time associated to each EEG sample. Then the time values that we have in the column corresponding to Event Date, are the real time values associated to the stimulation. And then, each stimulation is associated to the previous receibed data chunck. I hope I'm being clear enough.

I attach the Stimulation Listener output and the scenario I used to generate them. I can't upload the .ov and .csv because the limit is 256kb. In the .txt file it is shown the output of two different listener, one from the Lua Stimulator box that is generating the stimulations, and the other from the Acquisition client.

Best,

Juliana
Attachments
TestDelays.7z
(3.3 KiB) Downloaded 202 times

Thibaut
Posts: 264
Joined: Wed Oct 31, 2018 9:14 am

Re: Time delays

Post by Thibaut »

Hi Julianna,
If you sort the line by box you can see the delay is always 0,008 s for the box Graz (with lua it's normal).
The Acquisition Client can have random delay around 100ms (if you check the acquisition server you can see this delay (with the green bar).
If the time is different in ov file I don't know yet why, I'm going to search.
Thibaut

Post Reply