11-12-2015 11:18 AM
The timestamp I get in MAX using my 6682 differs from the indicator on my IRIG-B generator. I understanding about displaying the UTC in LabVIEW http://digital.ni.com/public.nsf/allkb/3B5A19E2C4966D688625752E006C7C65, but my data must be timestamped with UTC independent of time zone or in/out of daylight savings. Can this only be done by setting the Windows system time using LabVIEW and the kernal32.dll? https://decibel.ni.com/content/docs/DOC-25393 This could be a problem since neither I (a developer) or my users can change Windows system time. We do not have sys admin priviledges.
11-12-2015 12:35 PM
My sys admin has modified Windows so I am able to change the system time using kernal32.dll. However, MAX test panel is still showing incorrect time according to my IRIG generator. I've checked the GMT and my IRIG generator is displaying the correct UTC.
11-17-2015 07:32 PM
Hi Faustina,
what is the diference of time between the two timestamps? From where did you take the IRIG-B generator?. I just found some information about this, please check it:
http://digital.ni.com/public.nsf/allkb/C5BBF6AC7036CDAA8625733000668351?OpenDocument
11-18-2015 11:22 AM
exactly 1 hour. I'm think daylight savings time is playing into this but I'm not sure how. IRIG is based on GMT/UTC which doesn't have daylight savings time. The IRIG time I receive from the card must be recorded to the data file as GMT/UTC.
11-18-2015 11:38 AM - edited 11-18-2015 11:39 AM
What are you actually doing with the data? All of the functions that convert a LabVIEW timestamp to a string / display support returning the data in UTC and the timestamp itself is timezone independent (it's the number of seconds since 1904).
Here's an example:
11-18-2015 01:26 PM
I am not displaying the time. After getting the time using niSync Get Time VI, I write it to a TDMS file. MAX, debug probes, and the TDMS file show the time as being 1 hour off from the IRIG generator.
11-19-2015 03:42 AM
Which one is showing the correct time for your timezone? To be honest, I have no idea what an IRIG generator is - but it seems to be something for generating the current time?
MAX, debug probes and TDMS files will store the time in UTC, but display the time in your local timezone, as configured on your computer. If you want to change how they are displayed, you need to change the timezone, not the time on your computer to be UTC (coordinated universal time).
03-04-2016 10:50 AM
I have no trouble reading the timestamp from niSync Get Time.vi and displaying as UTC in LabVIEW. How do I insure that the timestamp is saved in the TDMS file as UTC so that when DIAdem reads the file it is displayed as UTC?