discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] format of data in datafile produced by file_sink_


From: Josh Blum
Subject: Re: [Discuss-gnuradio] format of data in datafile produced by file_sink_c
Date: Wed, 02 Jun 2010 11:35:13 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) 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, numpy.complex64)

-Josh

On 06/02/2010 11:25 AM, Yan Nie wrote:
Dear all,

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.

Regards,
Yan





_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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