Dear recipents,
I am trying to synchronize the clocks of two X310s using C. I have the
following code:
---
s->usrp->set_clock_source("internal", 0);
s->usrp->set_time_source("internal", 0);
s->usrp->set_clock_source("external", 1);
s->usrp->set_time_source("external", 1);
s->usrp->set_time_next_pps(uhd::time_spec_t(0.0));
sleep(1);
---
It produces the following output:
---
what(): RuntimeError: Reference Clock PLL failed to lock to external source.
---
I am able to synchronize the time using the example binaries, but not
with my own code. I can see the PPS signal with my oscilloscope while
running this code.
Is my logic flawed? My understanding is that I simply set the board
number 0 to listen to the clock and time sources of itself, and the
board number 1 to listen to the clock and time sources of the external
ports, which are connected to the board number 0. Then when
set_time_next_pps() gets called, I assume the board number 0 sets the
time according to its internal sources, and the board number 1
according to the external ones.
Thanks for reading my query!
--
Best regards,
Eino Virtanen, very-soon-to-be-MSc
_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com