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

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!

On Fri, Nov 7, 2008 at 6:21 AM, Bruhtesfa G. [email protected]
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs