Main Content

status

View the PTP daemon status on the target computer

Since R2020b

Description

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

example

Examples

collapse all

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

  1. 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.

    tg = slrealtime('TargetPC1');
    connect(tg);
    start(tg.ptpd);
  2. View status of the PTP daemon.

    status(tg.ptpd)
    ans = 
    
      struct with fields:
    
                 Running: 1
                  Devctl: 1
                   Error: ''
        OffsetFromClient: 0
          ClientToServer: 0
          ServerToClient: 0
             OneWayDelay: 0
            SavedOptions: [1×1 struct]

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2020b