IEEE 1588 Read Parameter
R2026bOutput Precision Time Protocol (PTP) status parameter values
Libraries:
Simulink Real-Time /
PTP
Description
The IEEE 1588 Read Parameter block reads a selected parameter and outputs its value. Examples of readable parameters include the target computer system time, calendar time, and network delays. The block automatically updates its label based on the selected parameter. You can use this block to read the Speedgoat® target computer system time, even when a Precision Time Protocol (PTP) process is not running.
The IEEE 1588 Read Parameter block updates the system time every 1
millisecond. This output is independent of the block's sample time and the nanosecond
precision of the block output. For more information, see clock_gettime() in the Linux Manpages [Debian].
Examples
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"slrealtimeptplib/IEEE 1588 Read Parameter"
Example: add_block("slrealtimeptplib/IEEE 1588 Read Parameter","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced in R2020b
