Re: [Discuss-gnuradio] Obtaining 'time_spec' from Out-of-tree C++ Module

2014-04-30 Thread David Halls
discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Obtaining 'time_spec' from Out-of-tree C++ Module Hello David, as get_time_now is a public function of usrp_sink, it is accessible from everywhere :) You'll need a (shared) pointer to that usrp_sink;using that, you can do

Re: [Discuss-gnuradio] Obtaining 'time_spec' from Out-of-tree C++ Module

2014-04-30 Thread Marcus Müller
Hello David, as get_time_now is a public function of usrp_sink, it is accessible from everywhere :) You'll need a (shared) pointer to that usrp_sink;using that, you can do something like uhd::time_spec_t now = my_usrp_sink->get_time_now(); You could, for example, take an usrp_sink::sptr as an argu

[Discuss-gnuradio] Obtaining 'time_spec' from Out-of-tree C++ Module

2014-04-30 Thread David Halls
Dear All, I would like to have knowledge of the USRP time in my transmitter flow graph. In the receiver flow graph this is straight forward because 'rx_time' tag is propagated from a USRP source as a tag. How can I obtain the time_spec from a c++ block in my transmitter flow graph? "usrp_sink_