Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Syncing LabView clocks to an internet source

Is there a way to sync your computer to NIST or some external clock through an internet connection to keep an accurate time stamp during long tests (48+ hours)?

0 Kudos
Message 1 of 2
(3,146 Views)

Hey MattManML,

 

LabVIEW pulls its time stamps from your Operating System clock, so theoretically you can sync your computer clock to some external clock via an internet connection or hardware. Are you using a real-time OS? If not I would suggest looking up Windows/Mac forums on how to do this.

 

For the LabVIEW side of things, avoid using the “Tick Count (ms)” VI since it has a quick rollover time and won’t be good for long application run times, but instead utilize the “Get Date/Time In Seconds” VI.
Here are a few links to get you started with this VI and how to change the display format:
https://zone.ni.com/reference/en-XX/help/371361H-01/glang/get_date_time_in_seconds/

http://zone.ni.com/reference/en-XX/help/371361F-01/glang/get_date_time_string/

 

Hope this helps!

 

Tyler
Applications Engineer
National Instruments

Message 2 of 2
(3,105 Views)