discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Figuring out samples written to file


From: L. Miguel Bazdresch Sierra
Subject: [Discuss-gnuradio] Figuring out samples written to file
Date: Wed, 22 Nov 2006 15:19:11 -0600
User-agent: Thunderbird 1.5.0.7 (X11/20060909)


Hello,

I sampled an FM station and created a sample file with one second worth of 
samples:

$ ./usrp_rx_cfile.py -d 256 -f 97.9M -N 256k fm1.out

This works; I can listen to the audio just fine using:

$ ./wfm_rcv_file.py fm1.out

Now I want to input the samples to octave:

octave> v = read_complex_binary("fm1.out", 256000);

The problem is that the samples don't look right to me:

octave> v(100:105)
ans =

  -14 + 21i
  -14 + 22i
  -19 + 18i
  -22 + 13i
  -25 +  8i
  -27 -  3i

Most samples seem to be integers between -35 and 35. Besides, I *always* get a spike at around sample 500:

v(520:525)
ans =

   -125 +  296i
    220 -  603i
   -478 + 1330i
    932 - 2711i
   5033 + 2437i
  -2243 + 7548i

No matter how many I re-run the usrp_rx_cfile program, I get similar results. Is this normal?

--
Miguel Bazdresch Sierra




reply via email to

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