Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Compact Rio resetting the time by itself

Hi all,

 

I am facing a problem that the time on board compactRIO reset itself back to after some period. That is a serious problem for me, because I am taking measurement and the timestamp is recorded based on the on board timestamp. 

 

I have been searching arround, seems no one has similar experience. And the compactRIO I am using is cRIO-9022.

I am using Labview 2012.

 

It would be great if some one can point out what the problem is.

 

Thanks in advance.

 

Yifeng

0 Kudos
Message 1 of 17
(5,392 Views)

Is there any problem with the power to the cRIO?  Some models do not have onboard batteries for the system clock, and will reset when the power is cycled.

0 Kudos
Message 2 of 17
(5,375 Views)

Hi,

 

I just test the RIO this morning. When the power was cycled the time stamp in the RIO was fine.

 

And last time the time reset itself was happened during data logging operation. If the power suddenly cycled the connection should stop and the program should also stop. But that wasn't the case for me, so it just came from no where. 

 

I really not sure why is like that. 

 

I have attached the two system setting file that i downloaded from the RIO. 

Thanks in advance.

 

Regards,

Yifeng

0 Kudos
Message 3 of 17
(5,362 Views)

When it occurs, does it always happen during logging operations?  If so, then are you logging large amounts of data locally?  

 

If you don't mind, if you tell me a bit more about your application and what kinds of operations your cRIO is performing, it may help uncover some leads.

0 Kudos
Message 4 of 17
(5,348 Views)

Hi Andrew,

 

I have experienced that twice, and both of them were during operation. 

We are using the Rio recording data and save as tdms file and transfer back to host computer.

It is not really taking large amount of data locally, I have kept the tdms file to be as small as possible. It occupies only about 10Mb in storage.

 

In the labview program, I am running FPGA mode and Scan mode parallel. The FPGA mode is used to take voltage data, and Scan mode is used to take temperature data.

 

Thanks a lot.

 

Regards,

Yifeng

0 Kudos
Message 5 of 17
(5,344 Views)

Hi Andrew,

 

There is another weird thing happening to me. I am trying to get the time stamp on the RIO. 

If I use the function Get Date/Time in Seconds, I would get one hour faster than the real time.

But if I use the function Format Date/Time String, I am getting the correct time.

I have tried to convert the Date/Time String back to time stamp, and I would get an extra one hour in the time stamp. 

I really not sure what is going on there. Suppose these two functions would return two exactly same time.

 

Best regards,

Yifeng

0 Kudos
Message 6 of 17
(5,341 Views)

Could you put a simple demonstration of that Timestamp difference in a VI?  I would like to test that.  There is a possibility that if it is exhibiting this behavior that there could be a bug in it.  I would like to see if I can replicate it myself. 

 

As for the time resetting, does it happen at the same point in your project, as far as you can tell?  It may be worth seeing that code as well.

0 Kudos
Message 7 of 17
(5,323 Views)

Hi Andrew,

 

For the timestamp difference, I have attached the timestamp vi in this post. Remember run this vi in the RIO, because it works fine in computer, just would have one hour different when working in the RIO.

 

For the time resetting, I am not sure what do you mean by happen at the same point. 

I have recorded down the time the two incidents happened, the first one was 22 Dec 2012_01:05:03 AM, and the second one was 11 Jan 2013_03:04:35 AM. I am not sure this would help or not. And as far I know that is about the information that i have got. 

 

I don't think the code i wrote would trigger that happen, since the code it is doing running test now. And for days, no problems have been found.

It just happened kind of randomly.

 

And one more thing is, when I was doing a file transfer before the incident happened. I accidently deleted all the file (not including folders) in the main directory of the rio. After that i lost connection to the rio until i reinstall all the software for the rio. After i reinstall the software, I got two files on the main directory, which were the two I have attached in my previous post. I am not sure whether that would be the lead. 

 

Thanks very much for your help.

Best regards,

Yifeng

0 Kudos
Message 8 of 17
(5,316 Views)

After some research, I found the Get Date/Time VI (the simple one that just returns a timestamp) corrects the system clock by checking for time zone.  The Get Date/Time String VI, on the other hand, uses a direct call to the OS and does not correct for the time zone.  If you want to use the one as an input to the other, that is one way to correct.  Or you can make sure the time zone settings on your computer are set as desired when you deploy  your project. 

 

As far as the time reset, it sounds as if the internal battery for the system timer may be loose or dead.  It might be worth an RMA to have it repaired or replaced.  If you wanted to give me your serial number, I may be able to tell you when it was purchased or if it is still under warranty.

0 Kudos
Message 9 of 17
(5,310 Views)

Hi, Andrew

 

I have tried to change the time zone. It works for me now. Thanks for your help.

 

And for the RIO, my serial number is 1441618. 

 

Thanks for all your help.

 

Best regards,

Yifeng

0 Kudos
Message 10 of 17
(5,304 Views)