discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Log raw data from the usrp_spectrum_sense.py
Date: Mon, 01 Dec 2014 16:30:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Hi Leo,

usrp_spectrum_sense actually has nothing to do with the FPGA -- in fact,
it just gets complex samples from a USRP, and displays them in frequency
domain; so hopefully that answers your question :)

Regarding writing the raw binary data to a file: These are binary
samples, and not text, and thus you won't see anything useful in a text
file.

Best regards,
Marcus


On 12/01/2014 03:49 PM, Leo Yang wrote:
> I'm using the usrp_spectrum_sense.py to get the raw data for the wide band
> spectrum for FFT in the FPGA . The thing confused me is what the raw data
> is. Is that the complex signal before fft ? 
> As  m.raw_data is a string that contains the binary floats, when i try to
> log it in a txt file, it outputs Garbled text, and it seems only take few
> millisecond, and how to control the time to do the spectrum sensing btw.
> here is the code for exporting the m.raw_data        
>  
>         text_file = open("Output.txt", "w")
>         text_file.write("binary floats: %s" % m.raw_data)
>         text_file.close()
>
> Thanks a lot 
>
>
>
> --
> View this message in context: 
> http://gnuradio.4.n7.nabble.com/Log-raw-data-from-the-usrp-spectrum-sense-py-tp51503.html
> Sent from the GnuRadio mailing list archive at Nabble.com.
>
> _______________________________________________
> 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]