# How To Print Elements of Vector Tags?

**URL:** <https://www.ruby-forum.com/t/how-to-print-elements-of-vector-tags/240408>\
**Category:** GNU Radio\
**Created:** [April 12, 2014, 7:41am UTC](https://www.ruby-forum.com/t/how-to-print-elements-of-vector-tags/240408 "2014-04-12T07:41:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 12, 2014, 7:41am UTC](https://www.ruby-forum.com/t/how-to-print-elements-of-vector-tags/240408/1 "2014-04-12T07:41:20Z")

</div>

Hi,

I’m new to gnuradio and want to do some wireless communication  
experiments  
with it. I runned OFDM examples(rx\_ofdm.grc & tx\_ofdm.grc) and tried to  
use  
the _tag debug_ block to retrieve the CIR information generated during  
receiving procedure. Yet what tag debug block outputs is the key-value  
pair,  
_Key:ofdm\_sync\_chan\_taps Value:#_, but not the vector  
elements. Is there any way to print out the vector? Further more, is  
there  
any way to record down all tags in file?

Thanks.

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/How-To-Print-Elements-of-Vector-Tags-tp47530.html](http://gnuradio.4.n7.nabble.com/How-To-Print-Elements-of-Vector-Tags-tp47530.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![qiank10](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/958977/32.png) [@qiank10](https://www.ruby-forum.com/u/qiank10)\
**Post date:** [April 12, 2014, 5:49pm UTC](https://www.ruby-forum.com/t/how-to-print-elements-of-vector-tags/240408/2 "2014-04-12T17:49:01Z")

</div>

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

Hi Giankun,

as I had a similar problem a little while back, I finally came around  
to writing a fix for that.

If you’re running a recent GNU Radio 3.7, you can try it out by  
executing

git pull [GitHub - marcusmueller/gnuradio: GNU Radio · GitHub](https://github.com/marcusmueller/gnuradio.git)  
pmt\_io\_uniform\_vector\_to\_string

(without the line break) in your GNU Radio source tree and  
rebuilding/installing GNU Radio.

Greetings,  
Marcus

On 12.04.2014 07:40, qiankun wrote:

> Thanks.
> 
> – View this message in context:

[http://gnuradio.4.n7.nabble.com/How-To-Print-Elements-of-Vector-Tags-tp47530.html](http://gnuradio.4.n7.nabble.com/How-To-Print-Elements-of-Vector-Tags-tp47530.html)

> 

Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ Discuss-gnuradio  
> mailing list [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1  
Comment: Using GnuPG with Thunderbird - [http://www.enigmail.net/](http://www.enigmail.net/)

iQEcBAEBAgAGBQJTSWAlAAoJEBQ6EdjyzlHt+GgH/2wBQJtAgeU0VkplEHrc3Fzw  
cV9D0AA04XtzL2v15ucs0WyB4vhgAUy/iLHYCrKmNWOb2Oa6p17l1faGtvqUuuso  
D1BuyaSaRi2xaYESsDeqJk8OxxBCec+SOlkzWTgEMvHJ5TcjCBKJvV2f/OltceaY  
Hq2FK/XDDQqDiEWzD8SOpy1+XJC8ZT4WGxXv9i8jB9zBkZV8ecjC+1JJ5/eK0qis  
balwhtemojnh6rNo2i9A5GlWjOmQE6o58k4bkMA4sogwtuBMg0th1J5nYP5ETXmX  
S8kzBA2U8iUoeblnbV83SP2SfKDDpY2ZTkiUCg8588GHUEWwi+KvIiHM0ohrU14=  
=no0C  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![qiank10](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/958977/32.png) [@qiank10](https://www.ruby-forum.com/u/qiank10)\
**Post date:** [April 13, 2014, 11:28am UTC](https://www.ruby-forum.com/t/how-to-print-elements-of-vector-tags/240408/3 "2014-04-13T11:28:45Z")

</div>

Hi Marcus,  
Thanks for your help!

The program outputs complex vectors in string format with your modified  
pmt  
objects:

[http://gnuradio.4.n7.nabble.com/file/n47554/Screenshot\_from\_2014-04-13\_17-16-03.png](http://gnuradio.4.n7.nabble.com/file/n47554/Screenshot_from_2014-04-13_17-16-03.png)

I’ll go on checking these CFR values and conducting the experiment.

By the way, the official tutorial of gnuradio says that _file metadata  
sink_  
can be used to record down detached stream tags. Is it possible for me  
to  
record down vector tags in file and post parse it using this sink?

Thanks!

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/How-To-Print-Elements-of-Vector-Tags-tp47530p47554.html](http://gnuradio.4.n7.nabble.com/How-To-Print-Elements-of-Vector-Tags-tp47530p47554.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![qiank10](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/958977/32.png) [@qiank10](https://www.ruby-forum.com/u/qiank10)\
**Post date:** [April 14, 2014, 4:08pm UTC](https://www.ruby-forum.com/t/how-to-print-elements-of-vector-tags/240408/4 "2014-04-14T16:08:14Z")

</div>

On Sun, Apr 13, 2014 at 5:27 AM, qiankun [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ll go on checking these CFR values and conducting the experiment.
> 
> By the way, the official tutorial of gnuradio says that _file metadata  
> sink_  
> can be used to record down detached stream tags. Is it possible for me to  
> record down vector tags in file and post parse it using this sink?
> 
> Thanks!

Yes, the file meta sink stores any tags that flow through it in the  
header.  
See this page for details on the metadata file format:

[http://gnuradio.org/doc/doxygen/page\_metadata.html](http://gnuradio.org/doc/doxygen/page_metadata.html)

Tom
