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

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

Reply via email to