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 / IEEE 1588

  • 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 Master — Time offset in nanoseconds. The output is a double.

  • Master to Slave Delay — Time delay in nanoseconds. The output is a double.

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

Programmatic Use

Block Parameter: param

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

Programmatic Use

Block Parameter: sample_time
Introduced in R2020b