Accessing gr_uhd_usrp_source/sink methods

Hello GR,

Is there a possibility I can have a pointer into my C++ coding to access
let’s say gr_uhd_usrp_source or _sink methods and call them from inside
my
class.
How can I do that ?

Regards,
Ruecan


View this message in context:
http://gnuradio.4.n7.nabble.com/Accessing-gr-uhd-usrp-source-sink-methods-tp47116.html
Sent from the GnuRadio mailing list archive at Nabble.com.

By the way I am working with GR 3.6.5,
The precise question is as following, If I am instantiating a usrp_sink
and
usrp_source from inside my python script and I want at some point in
time
modify one of its proprieties from inside my C++ custom block, would
that
make sense and work ?

Or I must in any case declare the uhd_source and uhd_sink AND modify
their
proprieties in the same custom block (Not declare instantiate it Python
and
modify in run time in C++) ?


View this message in context:
http://gnuradio.4.n7.nabble.com/Accessing-gr-uhd-usrp-source-sink-methods-tp47116p47117.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On 03/21/2014 03:17 PM, Ruecan wrote:

By the way I am working with GR 3.6.5,
The precise question is as following, If I am instantiating a usrp_sink and
usrp_source from inside my python script and I want at some point in time
modify one of its proprieties from inside my C++ custom block, would that
make sense and work ?

Or I must in any case declare the uhd_source and uhd_sink AND modify their
proprieties in the same custom block (Not declare instantiate it Python and
modify in run time in C++) ?

You can do that, just pass a reference of the UHD block to yours. But
you won’t have control of timing with respect to the sample time, e.g.,
you can’t retune the frequency for a specific sample.

M

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs