LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

average of timestamps

Hi,
 
I have a lot of timestamps and I want to do the average of them. For example If I have timestamp1 to timestampN, I want to do the following:
 
(TimeStamp1+TimeStamp2+ ... + TimeStrampN)/N
 
How can I do it?
 
I have converted them to double precision float but it seems the result is not  coherent.
 
 
Thanks,
 
ToNi.
0 Kudos
Message 1 of 4
(2,806 Views)

Hi ToNi

Could you be a little bit more precise? How do your timestamps look like? Are they relative or absolute? Could you post some code?

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 4
(2,797 Views)
I attach you a little example, Is this correct?


Thanks,

ToNi.
0 Kudos
Message 3 of 4
(2,789 Views)
I think this works correctly, but do you really want to average absolute timestamps?
 
Just for example:
Now you can have 3 timestamps (12.7.05 16:00; 13.7.05 16:00; 14.7.05 16:00). Your vi averages these values and the result will be 13.7.05 16:00.
 
Is this really what you want to have? And if so - why?
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 4
(2,784 Views)