LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time bug on RIO?

I have a RIO 9014 with the time zone set to UTC.
 
If I run a Get/Time in seconds function and a Format Date/Time string (with string format: %H:%M:%S) on it the times returned does not match. If I e.g. use the RT Set Date and Time.vi to set the time to 12:35:00 the Get/time in seconds will return 14:35:00, while the Format Date/Time string will return 12:35:00.
 
I would expect them both to return the same time, as they do when running on a PC.
 
What is going on?
 
Is there confusion somewhere between the time it will display on the front panel on the PC controlling the RT target, and the actual time on the RT target?
0 Kudos
Message 1 of 2
(2,505 Views)
Just to clarify: The Format function does not have the UTC flag set, and even if it does it reports the same time - which makes sense as the unit is set to use UTC anyway.
 
One explanation I can imagine is that the front panel shown on the PC is showing the time as it would be on the PC, not the value it has on the RT target. So - while the RT target is operating on UTC and the UTC time is 12:35, the front panel will show 14:35 because the computer is in time zone +1 with DST...In any case however this is incorrect behaviour - I'm looking to see what the time is on the RT target (the front panel "is" on the RT) and should be able to do so by running the Get Time to an indicator...and get the same result as the format time function.


Message Edited by Mads on 04-23-2008 06:59 AM

Message Edited by Mads on 04-23-2008 06:59 AM

Message Edited by Mads on 04-23-2008 07:00 AM
0 Kudos
Message 2 of 2
(2,502 Views)