02-26-2010 04:33 AM
Hi All,
I am using LabVIEW 8.5.1 in my project. When I set the time of RT controller using Set Date and Time.vi, there is an error of one hour in the time which is set.
For example:-
If I set the time to 08:00:00 02/02/2010, the time set will be 09:00:00 02/02/2010.
When read the timestamp using
Get Date/Time In Second.vi the time read will be 09:00:00 02/02/2010
Format Date/Time String.vi the time read is 08:00:00 02/02/2010
If I convert the Timestamp read by Get Date/Time In Seconds.vi using Format Into String.vi the string output is 08:00:00
I am using the timestamp in the form of string in my application. But unfortunately the timestamp in string format is not correct (1 hour slow).
Can anyone suggest me a solution for this?
Is this problem is rectified in any higher versions of LabVIEW?
I am using the timestamp in the form of string in my application. But unfortunately the timestamp in string format is not correct (1 hour slow).
02-26-2010 04:42 AM
Check the UTC parameter when using Date/Time functions. Some functions have a boolean control if you want the time in UTC or local time. I guess your local time is 1h off UTC, that's why you get the difference.
02-26-2010 05:03 AM
Hi,
My UTC time is 5:30 hrs not 1hr
02-26-2010 05:06 AM
Did you configure the correct time zone on the rt target?
02-26-2010 05:09 AM
My time zone settings are correct.
It is India, Sreelanka. The UTC is 5.5 hrs.
02-26-2010 05:11 AM
02-26-2010 05:13 AM
Sreeprathap K wrote:
Unfortunately I have clicked on the solution button. Is there any chance that I can change it to "not solved"
I think you can, use the options menu on the top right of the post.
05-21-2010 05:35 AM
Dear All,
Thanks for your replies.
The issue is solved.
I have upgraded the LabVIEW version to 8.6.
This was a known issue in LV 8.5.1.
When I used 8.6, the time is setting correctly.