01-30-2017 12:27 PM
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)?
01-31-2017 10:21 AM - edited 01-31-2017 10:34 AM
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