From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows MAX and IRIG

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.

0 Kudos
Message 1 of 8
(3,626 Views)

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.

0 Kudos
Message 2 of 8
(3,609 Views)

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

0 Kudos
Message 3 of 8
(3,549 Views)

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.

0 Kudos
Message 4 of 8
(3,523 Views)

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:

UTCDateTime.png


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 5 of 8
(3,518 Views)

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.

0 Kudos
Message 6 of 8
(3,509 Views)

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).


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 7 of 8
(3,490 Views)

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?

0 Kudos
Message 8 of 8
(3,268 Views)