Use the "get_time_now" method, which is callable from C++ or from Python 
(through Swig).

http://gnuradio.org/doc/doxygen/classuhd__usrp__sink.html#a74c75fc2a209184856db674489de748c

Sean



From: [email protected] 
[mailto:[email protected]] On Behalf 
Of Wu Ting
Sent: Friday, February 17, 2012 7:45 AM
To: [email protected]
Subject: [Discuss-gnuradio] How to get time from GPSDO

Hi all,

I know this is a very basic problem. But I have looked for a lot of information 
and discussions and still cannot figure out how to do.

In my current GNURadio application, I want to get the time produced by GPSDO. I 
found this page

http://files.ettus.com/uhd_docs/manual/html/gpsdo.html#using-the-gpsdo-in-your-application

and thought usrp->get_mboard_sensor is the function that I need. But I don't 
know how to use this function in GNURadio. It seems that the code is written in 
C++. So can I use it directly in GNURadio?

Thanks,

Wu

_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to