LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

9076 Timestamp not current

I am currently trying to setup a system that measures some input values and arrays those values and saves them to a spreadsheet with a timestamp of the time that the data was collected. The files will be referenced later and the order in which they are collected are important. Currently the timestamp reads in the 1969-70 range and will change upon the cRIO being reset. I am trying to change the timestamp to match the actual time even if the crio is reset so that my files are in the correct order. I went through the procedure to setup the SNTP but the changes dont seem to be working. I am not sure what i am missing or doing wrong but any help would be great.

I have attached a copy of my ni-rt.ini file as well as a screenshot of my VI to help.

I am running LabVIEW 15, Timesync 15

 

Thanks in advance,

Mike

Download All
0 Kudos
Message 1 of 5
(3,593 Views)

Your VI really is not even running long enough for the SMTP to kick in.  It does take about the 60 seconds for the update to happen.  Maybe you should add a 60 second wait before your loop to allow the time to sync up.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(3,582 Views)

Crossrulz,

 

I added a time delay before the loop of 5 mins just to check if that was the problem, and sadly same result just delayed by 5 mins. I didnt know that there was a time requirement for the connection to be made so i will leave the delay in there for the future. I am still recieving 1969 on my timestamp though.

 

Thanks for the reply

 

 

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

Did you use a sequence structure to make sure the time was not read until after your loop?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(3,565 Views)

crossrulz

 

I used a flat sequence structure, with the time delay in the first panel of the sequence and the loop in the second sequence panel. The VI when run waits for the 5 mins before it runs the loop. which runs for 1 minute and then the file is created.

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