discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] uses gr.file_sink 32 bit or 64 bit


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] uses gr.file_sink 32 bit or 64 bit
Date: Thu, 26 Mar 2009 07:32:09 -0700

On Thu, Mar 26, 2009 at 4:12 AM, feldmaus <address@hidden> wrote:

> i want to save some output from the usrp and watch it with octave.

The usrp.source_c(...) block generates IQ data as pairs of 32-bit
floating point values.

Use gr.file_sink(gr.sizeof_gr_complex, "filename.dat") to write these
samples to disk.

Inside Octave, use read_complex_binary('filename.dat') to load the
saved samples into an array of complex numbers.

Johnathan




reply via email to

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