LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IEE 1588 Clock State Stopped/Passive

Solved!
Go to solution

LabVIEW Version 2016.

 

Looking for more details on what these states mean, and why an apparently synchronized PXI might report its master as Passive and itself as Stopped. The values for the enum in the Help are: Not Defined (-1), Initializing (0), Faulty (1), Disabled (2), Listening (3), Pre-Master (4), Master (5), Passive (6), Uncalibrated (7), Slave (8), Stopped (9). I've tried searching and come up with very little. From what I understand, a Grandmaster-level clock that has determined there is a better GM on the network will set itself to "Passive"... but we only have one, and in its own configuration tool it reports its state as Master.

 

We have a PXI-8880 using NI-TimeSync to sync with a PTP source on the network. Various status info is grabbed from a hardware property node for both the GM and the system clock. The system, after initializing, goes to Stopped (9), and the status for the GM is shown as Passive (6). But everything is synchronized, and we've tested adjusting the PTP source's time and watched the PXI's time track. Offset from master is generally a few microseconds or lower.

 

Any info would be appreciated-- one of the running theories is that the documentation is somehow wrong, since their behavior is otherwise normal. If we subtract 1 from the outputs we get Master (5) for the GM and Slave (8) for the PXI, which is what we expect based on all the other settings and behavior...

0 Kudos
Message 1 of 2
(2,219 Views)
Solution
Accepted by topic author Jagdeb

Hi,

 

If you subtract 1 from the value, the states will match the enum with one exception: stopped will be -1.

 

I looked into this behavior and tracked it to an issue with the IEEE 1588-2008:Basic Information:Clock State property in NI System Configuration. The property reports the value used by the IEEE 1588-2008 protocol instead of the one documented in the LabVIEW API. The values you can expect from the property node are as follows:


Stopped (0), Initializing (1), Faulty (2), Disabled (3), Listening (4), Pre-Master (5), Master (6), Passive (7), Uncalibrated (8), Slave (9)

 

I hope this helps,
-Tyler

Message 2 of 2
(2,191 Views)