Hi Nate,

Thanks a lot for your help! I'll look at these and see what I can do.

Best regards,
Fengyang Jiang
________________________________
发件人: Nate Temple <nate.tem...@ettus.com>
发送时间: 2019年8月20日 15:35
收件人: Jiang, Fengyang <fz...@psu.edu>
抄送: usrp-users@lists.ettus.com <usrp-users@lists.ettus.com>
主题: Re: [USRP-users] A Question about Synchronization

Hi Fengyang,

These are calls to the UHD API within your application.

There are several examples here [0] of using the UHD API. I would encourage you 
to checkout specifically these examples [1],[2] as a starting point. 
Additionally there is this app note [3] which shows how to get started with the 
init_usrp example to setup a cmake file. This section [4] of the UHD manual is 
also useful for the API reference.

Additionally you'll need to make sure the jumper at J510 is set to the correct 
position for an external reference. I've attached a diagram for setting up a 
GPSDO on N210 (only example I have at the moment). Instead of setting the 
jumper to 2/3 for GPSDO, you should make sure it is on pins 1/2 for the 
external ref in.

[0] - 
https://github.com/EttusResearch/uhd/tree/master/host/examples<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FEttusResearch%2Fuhd%2Ftree%2Fmaster%2Fhost%2Fexamples&data=02%7C01%7Cfzj28%40psu.edu%7Cc4ad2d5a98a04dae3d0e08d725a5647f%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637019264596254838&sdata=KHftPepxsGdOTVe4c37OGKyUOYXE0LRud%2BwunYK8DhM%3D&reserved=0>
[1] - 
https://github.com/EttusResearch/uhd/blob/master/host/examples/rx_samples_to_file.cpp<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FEttusResearch%2Fuhd%2Fblob%2Fmaster%2Fhost%2Fexamples%2Frx_samples_to_file.cpp&data=02%7C01%7Cfzj28%40psu.edu%7Cc4ad2d5a98a04dae3d0e08d725a5647f%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637019264596264832&sdata=Yox5nroMHDAAQUDJ2y9wGLY%2BALxcviRR1D0L7B67Avs%3D&reserved=0>
[2] - 
https://github.com/EttusResearch/uhd/blob/master/host/examples/rx_multi_samples.cpp<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FEttusResearch%2Fuhd%2Fblob%2Fmaster%2Fhost%2Fexamples%2Frx_multi_samples.cpp&data=02%7C01%7Cfzj28%40psu.edu%7Cc4ad2d5a98a04dae3d0e08d725a5647f%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637019264596264832&sdata=DL%2FHr7flXdy8SnQ%2F6ljPSRxGnqCEKd0w8mRI%2BzY8Ve4%3D&reserved=0>
[3] - 
https://kb.ettus.com/Getting_Started_with_UHD_and_C%2B%2B<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkb.ettus.com%2FGetting_Started_with_UHD_and_C%252B%252B&data=02%7C01%7Cfzj28%40psu.edu%7Cc4ad2d5a98a04dae3d0e08d725a5647f%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637019264596274830&sdata=44hGLOvZQMnlrgQ%2B1bHFrkEZkTLmNrAm0NvPi246t6E%3D&reserved=0>
[4] - 
https://files.ettus.com/manual/page_uhd.html<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffiles.ettus.com%2Fmanual%2Fpage_uhd.html&data=02%7C01%7Cfzj28%40psu.edu%7Cc4ad2d5a98a04dae3d0e08d725a5647f%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637019264596274830&sdata=wW8qjohTx67FbjPib2BHsJSPtKY4VT2XvO8VbqywV9Y%3D&reserved=0>

Regards,
Nate Temple

On Tue, Aug 20, 2019 at 11:09 AM Jiang, Fengyang via USRP-users 
<usrp-users@lists.ettus.com<mailto:usrp-users@lists.ettus.com>> wrote:
Hi all,

I'm trying to synchronize 2 USRP N210 devices using the OctoClock-G CDA-2990 as 
external 10MHz reference and PPS sources. It is said that I need to set up two 
configurations:

usrp->set_clock_source("external");
usrp->set_time_source("external");

Which file in which path should I modify in order to apply these 
configurations? Thanks a lot!

Best regards,
Fengyang Jiang
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com<mailto:USRP-users@lists.ettus.com>
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com<https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ettus.com%2Fmailman%2Flistinfo%2Fusrp-users_lists.ettus.com&data=02%7C01%7Cfzj28%40psu.edu%7Cc4ad2d5a98a04dae3d0e08d725a5647f%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637019264596284828&sdata=V%2Bp0QmouURsIP6EHWagqqXzf8MRj%2BAy8%2BzJnCdAwNnM%3D&reserved=0>
_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to