[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] format of data in datafile produced by file_sink_
Re: [Discuss-gnuradio] format of data in datafile produced by file_sink_c
Wed, 02 Jun 2010 11:35:13 -0700
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:188.8.131.52) Gecko/20100423 Thunderbird/3.0.4
file_sink_c prodces complex floating point. Every 8 bytes is a complex
float, where the first 4 bytes is a float representing I, and the second
4 bytes a float representing Q.
if you were using numpy, it could be read with: numpy.fromfile(file,
On 06/02/2010 11:25 AM, Yan Nie wrote:
I'm wodering the format of data in datafile which produced by file_sink_c. I
used octave function read_complex_binary to read the data. Since the usbdata is
a 16-bit binary data sent from FPGA to usb controller, is the first 16 lines of
the data represent the first sample point of the received signal? If not, does
one line of the data represent one sample poit of the received signal?
Thanks for help.
Discuss-gnuradio mailing list