PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

GET Date/Time functions not working in RT

In my labveiw7.1 RT application, i am using the Get Date/Time in seconds function (which gives a time stamp output), converting the time stamp output to seconds(using convert to DBL function) and sending to the host system using TCP/IP.

But when i convert the time in seconds to time stamp data type in the host the time dispalyed is wrong. I cannot directly send a time stamp data type to host since my RT application needs time value in seconds for some calculation purpose.
0 Kudos
Message 1 of 2
(3,193 Views)
Hi,
Thanks for contacting National Instruments. The behavior you are seeing is actually quite expected and correct. The reason you are seeing the difference in times is because the RT controller and your PC may be using different time zone settings. To get the same time for both machines, you need to set both of to the same time zone. E.g., if your PC is in the Central Time Zone, you need to set your PXI-RT controller to be same. To set this, go to MAX » Remote Systems » [RT Controller] and click on the System Settings tab. You can then select a time zone for your RT controller.
Let me explain what happens if the time zones are different:
On RT controller, if the time zone is set to Coordinated Universal Time (GMT), and if you copy the seconds over to your PC, you will the time will be off by 6 hours (if your PC is in the Central Time Zone). So as I mentioned, ensure that the timezone for the controller is the same as for the PC. The timestamp datatype actually accesses the local timezone and does an offset, so having the same timezone on both machines cancels that offset.

Hope this helps.
Anu Saha
Academic Product Marketing Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,176 Views)