Monday, November 21, 2011

Re: [Discuss-gnuradio] Getting 0, Nan while using usrp2_rx_cfile.py

From the GNURadio Wiki page on Octave:

Data captured directly from the USRP is stored as 32-bit complex, rather than 64-bit complex (gr.sizeof_gr_complex). To read this data, first useread_short_binary() and then split it into a two dimensional vector:

   d=read_short_binary(data);  c=split_vect(d,2); 

This works for both Octave and Matlab.

The value 'NaN' indicates an arithmetic or read error.  You can google it to find more.


Cheers,
Ben


On Mon, Nov 21, 2011 at 3:28 AM, hasanimam <shuvo1852@gmail.com> wrote:

Hello all,

I have faced another problem here. I am really in great trouble and want
this problem to be solved as early as possible.
I am using the usrp2_rx_cfile.py to get the raw IQ data in usrp2.
I am using the following command
sudo python usrp2_rx_cfile.py -f 800M -N 1000 -d 100 -s -v output.dat

After that, I converted the .dat file using octave command
(read_complex_binary).

However, the values I am getting are ambiguous.
I am getting lots of 0 (zeros) and lots of Nan (dont know what does it mean
though)..I have no idea about it.

Here is the snapshot of what I get. I would really appreciate if somebody
can give any idea about this. Thank you.

------snapshot-----------
(9.183409485952689e-41,0)
 (NaN,NaN)
 (NaN,NaN)
 (NaN,NaN)
 (NaN,NaN)
 (NaN,9.183409485952689e-41)
 (NaN,NaN)
 (NaN,9.183409485952689e-41)
 (NaN,NaN)
 (NaN,NaN)
 (9.183409485952689e-41,0)
 (NaN,9.183409485952689e-41)
 (9.183409485952689e-41,0)
 (9.183409485952689e-41,9.183409485952689e-41)
 (NaN,NaN)
 (9.183409485952689e-41,0)
 (NaN,NaN)
 (0,9.183409485952689e-41)
 (NaN,NaN)
 (NaN,9.183409485952689e-41)
 (NaN,NaN)
 (NaN,9.183409485952689e-41)
 (0,9.183269356106256e-41)
 (9.183409485952689e-41,9.183409485952689e-41)
 (9.183409485952689e-41,0)
 (9.183409485952689e-41,0)
 (9.183409485952689e-41,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)
 (0,0)

--
View this message in context: http://old.nabble.com/Getting-0%2C-Nan-while-using-usrp2_rx_cfile.py-tp32870494p32870494.html
Sent from the GnuRadio mailing list archive at Nabble.com.


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

No comments:

Post a Comment