LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

nisync NI PCI-1588

Solved!
Go to solution

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

 

Message 1 of 6
(3,552 Views)

What is your local timezone?

I assume it is +8 or -8 from UTC.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 6
(3,549 Views)

PST

0 Kudos
Message 3 of 6
(3,548 Views)
Solution
Accepted by kAwuor

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.

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 6
(3,544 Views)

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?

0 Kudos
Message 5 of 6
(3,528 Views)

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

0 Kudos
Message 6 of 6
(3,516 Views)