How do I synchronize PTP clocks between two Speedgoat target computers?

Can you give me an example for clock synchronization between two Speedgoat target computers using PTP?

 Accepted Answer

For MATLAB R2026a and later:

PTP functionality is provided by the “ptp4l” command included with the 64-bit Linux-based real-time operating system (RTOS) which is used by Simulink Real-Time.
The following example shows how to sync PTP clocks on two Speedgoat machines:

For MATLAB R2020b through R2025b:

PTP functionality is provided by the “ptpd” command included with the 64-bit POSIX-compliant QNX® Neutrino® RTOS which is used by Simulink Real-Time. See the QNX documentation to learn more about the PTP daemon and flags: ptpd (qnx.com)
The following example shows how to sync PTP clocks on two Speedgoat machines:
The example files were added in R2023a, but the same commands should work in any release between R2020b and R2025b.

For MATLAB R2020a and earlier:

Refer to the PTP page in the Simulink Real-Time documentation below by executing the following command in MATLAB R2020a and earlier:
>> web(fullfile(docroot, 'xpc/precision-time-protocol.html'))

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!