11-24-2008 12:31 PM
I am using a labview program that uses nisync start ptp and nisync stop ptp.vi with a NI PCI - 1588
my readout on the labview control panel shows 8hrs differents from the actual time read on the actual device.
how do i make it read the same time.
thanks
Solved! Go to Solution.
11-24-2008 01:00 PM
What is your local timezone?
I assume it is +8 or -8 from UTC.
Ton
11-24-2008 01:05 PM
PST
11-24-2008 01:32 PM
PST???
Sorry such a answer triggers my 'Arrogant American button'*
A short Google search indicates PST is -8 from UTC, have you configured the correct time zones on both end of the nisync service?
Ton
* Arrogant American Button, triggered when some people from a specific geographical part of the world assume that anyone knows their local time, what AM and PM are. What a cubic feet is, believe that an inch is a 'standard' and part of the System International (SI).
The last time it was triggered was when the NI forums went down and that the service would be offline between xx:xx PM and yy.yy AM EST (or whatever). I don't live there, it is not an international time, a little description with the UTC times of those two times would have helped much.
11-24-2008 05:16 PM
When the i use the computer as the master then i dont get the 8hr offset read out. but when i use the 1588 as the slave then i get the 8hour offset.
what could be the problem?
11-24-2008 08:20 PM
LabVIEW time is displayed in local time, so it tries to take in consideration your local time zone. If want to change your LabVIEW Time Stamp indicator to show universal time you can do this by right-clicking on the control/indicator and selecting Display Format. Then, select the Advanced editing mode radio button and paste
%^<%.9X
%x>T
as the Format string. Be sure the copy and paste it just as I have written it above using two lines. The real magic is with the ^ character. That is what tells the control or indicator to show the time in universal units. You can play around with other formats if you want to as well. I like using 9 digits of percision, but you can use less if you want.
-Josh