LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time since loop starting. Without Offset!!!!

I try to make an indicator that displays the time since the loop started. it sounds quite easy with the "Get time in seconds" and the "format time string". but I always have an offset of exactly 2 hours. Why????
this problem might be stupid but I don't find any solution.
Thanks for any help.
0 Kudos
Message 1 of 5
(3,077 Views)
Look your system time in botom-right conner, may be it setting to wrong time.
0 Kudos
Message 2 of 5
(3,078 Views)
my system time is correct. I delete the system time (start time) from the actual time. this way I get the number of seconds since the loop has started. then I convert it to a string with the described function.
0 Kudos
Message 3 of 5
(3,077 Views)
Format time string uses absolute time so what you see is the UTC offset in your timezone. If you format to include date, you will see that the offset is really 99 years since the epoch in LabVIEW is Jan 1, 1903 UTC.

You can use a numeric indicator and in Format and Precision, select "Relative Time" or write your own formatting VI for relative time if the relative time display doesn't fit your needs.


LabVIEW, C'est LabVIEW

0 Kudos
Message 4 of 5
(3,077 Views)
Correction, the epoch is Jan 1, 1904 UTC.


LabVIEW, C'est LabVIEW

0 Kudos
Message 5 of 5
(3,077 Views)