Reading from TVRX board

Hello,

I’m a student trying to use the USRP with the TVRX board to do a simple
FM
stereo receiver. I previously wrote a MATLAB model of a FM transmitter
and
receiver, and I wanted to use real data in my model. I’ve been modifying
the
wideband fm example to record data from the TVRX board by basically
inserting some of the l1_record.py code like this:

self.dst = gr.file_sink(gr.sizeof_gr_complex, ‘data.txt’)
self.head = gr.head(gr.sizeof_gr_complex, 800000)
self.connect(self.u, self.head, self.dst)

Then, I use a script written to convert the binary data file into a
MATLAB
vector. However, the recorded data is not meaningful to me. When
plotting
the data, instead of seeing some kind of waveform, I see what looks
similar
to a NRZI waveform. If you wish to see what I am seeing, here is a
screenshot of the data: http://web.ics.purdue.edu/~jpendlum/usrpdata.bmp

It is also important to note that the example wideband FM code runs
flawlessly. I can tune to local radio stations and listen to them.

These are the questions that I’ve tried very hard to answer, but I can’t
seem to figure out:
2. Is the recorded data in some kind of encoded format, and if so, what
is
this format?
3. If not, then what am I doing incorrectly in my record script?

If anyone could help, I would greatly appreciate it. Thanks.

Jon Pendlum

On 2/14/08, Jonathon P. [email protected] wrote:

Then, I use a script written to convert the binary data file into a MATLAB
vector.

The data format is alternating I and Q single-precision floating point
in whatever endianness your computer is. See the following for how to
read into MATLAB:

http://gnuradio.org/trac/browser/gnuradio/branches/releases/3.1/gnuradio-core/src/utils/read_complex_binary.m


Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com/

Thank you for the reply. That is the script I use for reading in the
data
into MATLAB. I should have made that more clear.

On Thu, Feb 14, 2008 at 1:55 PM, Johnathan C. <