LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set rt time showing problem

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).

Into the pursuit...
Maverick
0 Kudos
Message 1 of 8
(2,781 Views)

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.

 

0 Kudos
Message 2 of 8
(2,778 Views)

Hi,

 

My UTC time is 5:30 hrs not 1hr

Into the pursuit...
Maverick
0 Kudos
Message 3 of 8
(2,767 Views)

Did you configure the correct time zone on the rt target?

 

0 Kudos
Message 4 of 8
(2,761 Views)

My time zone settings are correct.

It is India, Sreelanka. The UTC is 5.5 hrs.

Into the pursuit...
Maverick
0 Kudos
Message 5 of 8
(2,758 Views)
Unfortunately I have clicked on the solution button. Is there any chance that I can change it to "not solved"
Into the pursuit...
Maverick
0 Kudos
Message 6 of 8
(2,755 Views)

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.

Message 7 of 8
(2,751 Views)

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.

Into the pursuit...
Maverick
0 Kudos
Message 8 of 8
(2,614 Views)