Main Content

IEEE 1588 Read Parameter

Output Precision Time Protocol status parameter values such as target computer system time, calendar time, and delays

  • Library:
  • Simulink Real-Time / PTP

  • IEEE 1588 Read Parameter block

Description

The IEEE 1588 Read Parameter block reads the parameter that you select and send its value to the block output. The block label changes based on the parameter that you select.

You can use the IEEE 1588 Read Parameter block to read the target computer system time even without a PTPd process running.

Ports

Output Arguments

expand all

The current parameter to read.

Parameters

expand all

Specify the parameter to read. Select one of:

  • System time (nanosecond) — Current SLRT system time number of nanoseconds, counting from the current epoch. The output is a double.

  • Calendar time (time_t) — Current SLRT calendar time in time_t int32 vector.

  • Offset from Client — Time offset in nanoseconds. The output is a double.

  • Client to Server Delay — Time delay in nanoseconds. The output is a double.

  • One Way Delay — Time delay in nanoseconds. The output is a double.

The Calendar time (time_t) vector contains these parts:

  • seconds

  • minutes

  • hours

  • day of the month

  • month

  • year

  • day of the week

  • day in the year

  • daylight saving time

Programmatic Use

Block Parameter: param

Enter the base sample time or a multiple of the base sample time.

Programmatic Use

Block Parameter: sample_time

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020b