discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Get a pointer to UHD Sink from other block in flo


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Get a pointer to UHD Sink from other block in flow graph
Date: Thu, 16 Oct 2014 14:54:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

... and in C++ you can just use the sptr that you normally use when
using the uhd sink.

But: since Martin added the message ports to the UHD blocks, things
have gotten easier; you can just add an output message port to your
block and connect it to the message port of the UHD sink, and send
commands there without needing to care about objects, pointers, race
conditions...

also, if you want to do things like defining starts and ends of burst,
you might do so using the good ol' stream tags.

So many possibilities!

Greetings,
Marcus



On 16.10.2014 13:11, Koslowski, Sebastian (CEL) wrote:
> 
> On 10/16/2014 12:41 PM, David Halls wrote:
>> Is there any way to get a pointer to a UHD sink block from
>> another block in a flow graph, such that I can read from the time
>> registers of a USRP?
> 
> Depends how you're building your flow-graph: In Python, simply pass
> a reference to your UHD block object to your block. In GRC, there
> is no way to reference another block id in a block's params. Try
> this patch, if you want that [0]. Else, you could assume a fixed
> uhd sink block id and add that to your blocks XML's make template.
> 
> Sebastian
> 
> [0] 
> https://github.com/skoslowski/gnuradio/commit/c90e2ddf1cea38ee2400ef56b234758048d980bf
>
> 
> 
> 
> _______________________________________________ Discuss-gnuradio
> mailing list address@hidden 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUP7/8AAoJEAFxB7BbsDrLmCsH/Rq2P5TH2/Xe4+oAdmS5WoH+
VxOa5+DhfOPCGjzUgb/zyzMUBN+nj6rLwNNXCBL2y4zH5VYlnhNE2z9yCPnqGZRd
ELyJ0irEuviYSUCx9SMfYxfWyYlnQnj94t3A49DPrXhECZoa2lZDoJBuFQpTawvG
rk/A27B0PfLhbYfTQ+D50EmgFbzwm8a3I7ChAi0kL8SIHtCQi5fYunYBVjlzDh07
NnC7Xjcgx3HGhwTN1Q+YVEFRgBT6FfR45jhkmSS/GqwZa+Bz8KCjIF890qM//omi
3SmQT9pK8haqJWcHSTuX3sZeiM1zdwnjvPr5KscAZDH9FZni6IJYjs3JWq0BKL8=
=IAbe
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]