Hi Jeroen, here a link where there is an example about how to use UHD class. http://files.ettus.com/manual/classuhd_1_1usrp_1_1multi__usrp.html go in section "Detailed description". Give me a feedback if you are able to use this class in our own block. Bests, Simone
On Wed, 8 Oct 2014 14:01:39 +0000, "Boschma, J.J. (Jeroen)" <jeroen.bosc...@tno.nl> wrote: > Dear all, > > In the Companion GUI I use the UHD source- and sink-blocks, together with > my own OOT blocks. Now I want to control the UHD blocks from within my own > blocks, for example changing the center frequency. So in my own block I > would like to write something like: > > usrp->set_center_freq(whatever); > > I there an easy interface/API available to do this? Or do I have to > download the gr-uhd, modify it (maybe add a method to get a pointer to the > USRP out of it?) and rebuild? Unfortunately I just could not find a > starting point yet. > > Regards, > > Jeroen > > > > Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u > niet de geadresseerde bent of dit bericht abusievelijk aan u is > toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht > te verwijderen. TNO aanvaardt geen aansprakelijkheid voor de inhoud van > deze e-mail, de wijze waarop u deze gebruikt en voor schade, van welke > aard ook, die verband houdt met risico's verbonden aan het elektronisch > verzenden van berichten. > > > > This message may contain information that is not intended for you. If you > are not the addressee or if this message was sent to you by mistake, you > are requested to inform the sender and delete the message. TNO accepts no > liability for the content of this e-mail, for the manner in which you use > it and for damage of any kind resulting from the risks inherent to the > electronic transmission of messages. _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio