-----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 Discuss-gnuradio@gnu.org 
> 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-----

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

Reply via email to