Hi Jeroen,

the usrp blocks have public methods to do exactly that. It really looks
like what you've proposed :)

Not so long ago, Martin added support for doing things like that by
sending messages or stream tags to the block, too.

As you haven't found a starting point yet: Here's GNU Radio's official
API documentation:
http://gnuradio.org/doc/doxygen/
and the gr-uhd blocks are here:
http://gnuradio.org/doc/doxygen/group__uhd__blk.html
http://gnuradio.org/doc/doxygen/namespacegr_1_1uhd.html

Quite straightforward :)

Greetings,
Marcus

On 08.10.2014 16:01, Boschma, J.J. (Jeroen) 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

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to