Re: How to store recieved signal (time, voltage) in .txt format


#1

Hey slimchao,

Thanks for the reply! I tried gr.file_sink().
It writes something in a txt file, but when I open it it is not in
readable format.
Is there something that I can do to make it a readable .txt format for
the MAt lab, where every sampled value is written as float value on a
new line?

Thanks!


#2

On Fri, Nov 7, 2008 at 6:21 AM, Bruhtesfa G. removed_email_address@domain.invalid
wrote:

Hey slimchao,

Thanks for the reply! I tried gr.file_sink().
It writes something in a txt file, but when I open it it is not in readable
format.
Is there something that I can do to make it a readable .txt format for the
MAt lab, where every sampled value is written as float value on a new line?

Thanks!

gr.file_sink() writes it as a binary file, not a txt file. You can use
the
programs found in gnuradio-core/src/utils/read_float_binary.m etc to
read
those files from matlab or octave where you can resave them in a format
that
you want.

Karthik