LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time stamps

Good day to all

 

IM trying to find the time that have passed between two events.

To do that I have converted the two time stamps to doubles and subtracted one from the other.

For some reason when the time stamps are the same the result of the above is about 17 Seconds instead of 0

 

what is my mistake? 

thanks

Shai

0 Kudos
Message 1 of 3
(2,372 Views)
I can't reproduce your problem ! Please attach a part of your code or a screenshot.
Message 2 of 3
(2,366 Views)

You don't have to covert the timestamps...

 

http://thinkinging.com/2007/06/08/labview-tip-easy-relative-timestamp-calculations/

 

This example shows adding a relative time to an absolute. If you subtract two timestamps, you will get a relative time (double, in seconds). You can format the numeric indicator you create from the subtraction to show hours, minutes and seconds.

Message Edited by Phillip Brooks on 09-15-2008 11:16 AM
Message 3 of 3
(2,362 Views)