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 > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio