discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Set USRP clock to system time in GRC


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Set USRP clock to system time in GRC
Date: Fri, 05 Apr 2013 11:50:39 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4


On 04/05/2013 10:05 AM, Martin Luelf wrote:
> Hi list,
> 
> I am wondering if it is possible to set a USRP clock to the system time
> within GRC. I know this is straightforward in Python and C++ using the
> set_time_now method, but as I use GRC a lot I don't want to edit the
> generated python files everytime after I do some changes to my flowgraph.
> 
> I already checked the source (master a few weeks old) but there seems to
> be no call of set_time_now or set_time_next_pps. (I believe there have
> been no patches the last weeks regarding this?)
> 
> If there is no way of doing this in GRC right now, is there any reason not
> to add this to the UHD sink/source to set the clocks to system time by
> default?

I can see that being a helpful option.

Can you try this diff? It added a PC clock option to the sync drop down.
When set, the set_time_now will be initialized approximately to the PC's
time (pythons time.time() call).

http://pastebin.com/BmNeLzb1

-josh

> 
> Have a nice weekend.
> Yours
> Martin Luelf
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]