This is normal for the first few cycles; it takes several cycles for the
reference clock to “sync in”. It should eventually start working.
This is why there’s a patch in the unofficial patchset to suppress the fprintf
error when using the usermode library.
From: Mohsen Alizadeh Noghani
Sent: F
Since I only needed to subtract the reference slave's time in each cycle
from the previous fine, method 2a worked very well. So in the cycle, I have,
#ifdef MEASURE_TIMING
ecrt_master_reference_clock_time(master, &t_cur);
printf("%" PRIu32 "\n", t_cur - t_prev);
t_prev = t_cur;
#endif
1- How is
Hello everyone.
In the rtai_rtdm_dc example, there is a choice of syncing the master's
clock to the reference slave, instead of the other way around.
The algorithm is basically implemented in three functions, *system_time_ns*,
*sync_distributed_clocks, *and *update_master_clock.*
There are many var