On Thu, Jan 18, 2018 at 10:34:14AM +0100, Piotr Krysik via USRP-users wrote: > Hi Hideyuki, > > Our students were working (with my help) on synchronizing two USRPs B210 > with use of Octoclock-G. > To make your code work without any race-conditions I would add a loop > that waits for pps edge before your adjustment code, like this: > ``` > time_last_pps = self.uhd_usrp_source_0.get_time_last_pps() > while(self.uhd_usrp_source_0.get_time_last_pps() == time_last_pps): > time.sleep(0.01) > ```
This is good advice. You can go to multi_usrp.cpp and take a look at set_time_unknown_pps() for a reference on how to do that. -- Martin
signature.asc
Description: PGP signature
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com