Figuring out samples written to file

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs