Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong time stamp on cRIO real time controller

Hi,

 

I am acquiring data from thermocouples using cRIO (RT controller - NI cRIO 9025) and I want to include a time stamp in my file's metadata to know when the measurements are taken. The date is right but the time value return by the 'Get Data/Time in second' is wrong. I think it comes from the time of the cRIO as I got similar time for TDMS files creation when I download the file from 'ftp://IP'. 

 

I have up dated all the software and set the time zone from MAX again, but it made no difference.

 

All the similar post I have found are about time zone settings, but I don't think it is a time zone problem since the difference is around 4h27 (the value seam to vary from +/- 15 s). Any idea on what is going on?

 

I am using Labveiw 13 and NI cRIO 13.0. 

 

Thank you for any help you can provide

 

 

0 Kudos
Message 1 of 3
(5,634 Views)

Hi stn111,

 

Have you tried using the Get & Set Time.vi example? You can find it from the Example Finder>Hardware Input and Output>System Configuration.

Regards,

Al C
National Instruments,
Application Engineer
Message 2 of 3
(5,613 Views)

Thank for the answer AI.C, I ran the VI and it works much better now.

 

However I still have a 12s lag comming from the time difference between setting the time and running the VI. It is good enought for the purpos of knowing when I did my experiment but in the future I will need to integrat my measurements in a data base with measurements comming from other soucres and I would like the time stamp to be syncronize with my computer. Is there an easy fix for that?

 

I guess I could add those 12s to the time stamp in my LABView code, but I would prefer something less patchy.  

 

Many thanks

0 Kudos
Message 3 of 3
(5,601 Views)