discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Saving signal file in GNU radio


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Saving signal file in GNU radio
Date: Mon, 30 May 2016 20:12:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Hi Hais,
kindly guide me how can i save the received signal in GNU radio software
Have you gone through the tutorials on http://tutorials.gnuradio.org ? Like I said, use the "file sink". It's really not that hard if you just get started with these tutorials!
what should be the format of received signal file so that it can be imported in matlab for signal analysis..??
That one is asked quite frequently; here's the answer:
To cite [1]:

All files are in pure binary format. Just bits. That’s it. A floating point data stream is saved as 32 bits in the file, one after the other. A complex signal has 32 bits for the real part and 32 bits for the imaginary part. Reading back a complex number means reading in 32 bits, saving that to the real part of a complex data structure, and then reading in the next 32 bits as the imaginary part of the data structure. And just keep reading the data.

Take a look at the Octave and Python files in gr-utils for reading in data using Octave and Python’s Scipy module.

So, just go ahead and look at the read_something.m files in [2]. they contain matlab code.

Best regards,
Marcus



[1] http://gnuradio.org/redmine/projects/gnuradio/wiki/FAQ#What-is-the-file-format-of-a-file_sink-How-can-I-read-files-produced-by-a-file-sink
[2] https://github.com/gnuradio/gnuradio/tree/master/gr-utils/octave

On 30.05.2016 19:59, Haris Tanveer wrote:
i am using USRP n-210 to receive signals.
kindly guide me how can i save the received signal in GNU radio software  and what should be the format of received signal file so that it can be imported in matlab for signal analysis..??


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


reply via email to

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