Main Content

status

View the PTP daemon status on the target computer

Description

example

status(target_object.ptpd) displays the status of the PTP daemon on the target computer.

Examples

collapse all

The status command displays status of the PTP daemon on the target computer. This status includes PTP clock synchronization information.

Create a Target object and connect to the target computer. Creating a Target object creates a child Target.ptpd object. Start the PTP daemon on the target computer. View status of the PTP daemon.

tg = slrealtime('TargetPC1');
connect(tg);
start(tg.ptpd);
status(tg.ptpd)
ans = 

  struct with fields:

             Running: 1
              Devctl: 1
               Error: ''
    OffsetFromMaster: 0
       MasterToSlave: 0
       SlaveToMaster: 0
         OneWayDelay: 0
        SavedOptions: [1×1 struct]

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Introduced in R2020b