LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about "Get Date/Time in Seconds".

Hi,

I'm using labview 6.1, Full Dev. version. As we know, the fuction of
"Get Date/Time in Seconds" can measure the current seconds that have
elapsed since 12:00 a.m., Friday, January 1, 1904. But the accuracy is
just up to 55 milliseconds. Is there any way to improve the accuracy?
Thanks.

Chen
0 Kudos
Message 1 of 3
(2,388 Views)
Hi Chen,

I think you have to add your own "time offset".
I use an extra UINT16 with milliseconds, but you can use anything.
Ofcourse, you have to keep track of the extra variable (I bundle it with
the 'seconds since ..' variable).

Good luck,
Cees


gxchem wrote:

> Hi,
>
> I'm using labview 6.1, Full Dev. version. As we know, the fuction of
> "Get Date/Time in Seconds" can measure the current seconds that have
> elapsed since 12:00 a.m., Friday, January 1, 1904. But the accuracy is
> just up to 55 milliseconds. Is there any way to improve the accuracy?
> Thanks.
>
> Chen
0 Kudos
Message 2 of 3
(2,388 Views)
Chen,

The accuracy is based on the system clock. Unless you can improve the system clock accuracy, you cannot increase the accuracy of your time measurement.

If you are looking for more accurate time measurements, I would suggest using a time server or some other outside time measurement. One possibility is to use an internet time server.

However; as I'm not sure why you need improved accuracy, I can't really advise you as to the best way to proceed. If you could clarify your need, we may be able to offer better advice.
0 Kudos
Message 3 of 3
(2,388 Views)