MATLAB: How to get run time or system time from the SLRT target computer in R2020b

I'm upgrading from R2019a to R2020b and I can't find an analogous block to get run time or clock time from my SLRT target computer.

Best Answer

The IEEE 1588 Read Parameter block provides the necessary functionality. This block is designed to get information from a running PTP client on the target computer, but it can read the system time even if the PTP client is not running. To use this block to measure system time, set "Parameter to read" to "System time (nanoseconds)". For more information about the Read Parameter block, see the link below: