# How to collect the complex data of a dpsk modulator in a text file

**URL:** <https://www.ruby-forum.com/t/how-to-collect-the-complex-data-of-a-dpsk-modulator-in-a-text-file/237401>\
**Category:** GNU Radio\
**Created:** [November 11, 2013, 5:22pm UTC](https://www.ruby-forum.com/t/how-to-collect-the-complex-data-of-a-dpsk-modulator-in-a-text-file/237401 "2013-11-11T17:22:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [November 11, 2013, 5:22pm UTC](https://www.ruby-forum.com/t/how-to-collect-the-complex-data-of-a-dpsk-modulator-in-a-text-file/237401/1 "2013-11-11T17:22:47Z")

</div>

I am experimenting with the one of the flowgraph examples  
“uhd\_tx\_dpsk.grc”. I am able to see the complex number output in WX GUI  
NUMBER SINK block but I want to collect this output in a text file. If I  
use a “FILE SINK” block, it shows some symbols but nothing in the form  
of  
x+jy. Kindly suggest some technique to do this.

Regards,  
Sumedha

---

<div class="post-metadata">

**Author:** ![Sumedha\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b9bd4f/32.png) [@Sumedha\_G](https://www.ruby-forum.com/u/Sumedha_G)\
**Post date:** [November 11, 2013, 5:26pm UTC](https://www.ruby-forum.com/t/how-to-collect-the-complex-data-of-a-dpsk-modulator-in-a-text-file/237401/2 "2013-11-11T17:26:53Z")

</div>

> I am experimenting with the one of the flowgraph examples  
> “uhd\_tx\_dpsk.grc”. I am able to  
> see the complex number output in WX GUI NUMBER SINK block but I want to  
> collect this  
> output in a text file. If I use a “FILE SINK” block, it shows some symbols  
> but nothing in the  
> form of x+jy. Kindly suggest some technique to do this.

You need to use Matlab/Octave to read these files.

[http://gnuradio.org/redmine/projects/gnuradio/wiki/Octave](http://gnuradio.org/redmine/projects/gnuradio/wiki/Octave)
