Hi,
I am using DBSRX d’board with my d’board pluged on “Rx B”. I used
python usrp_rx_cfile.py -f 1575.42M -N 1e6 -g 40 data1.dat
to capture a sinosoid at 1575.42MHz with -30dB.
I get the msg
Using RX d’board A:
USB sample rate 4M
When I try to read that file in Matlab using
fid=fopen(‘data1.dat’);
data=fread(‘data1.dat’, ‘float32’)
it shows me garbage. I see similar data in the .dat file, even when I
turn off my function generator’s output!
Any idea!? Am I using this command correctly?
note: python usrp_fft.py -f 1575.42 runs fine showing a signal at the
0MHz on the display, so board itself s working fine.
Faisal A. Khan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Phaysal Khan wrote:
I get the msg
Using RX d’board A:
USB sample rate 4M
It’s using side A, not side B. Try with the “-R B” option. (see the
usage message shown below)
$ usrp_rx_cfile.py
Usage: usrp_rx_cfile.py: [options] output_filename
Options:
-h, --help show this help message and exit
-R RX_SUBDEV_SPEC, --rx-subdev-spec=RX_SUBDEV_SPEC
select USRP Rx side A or B (default=A)
-d DECIM, --decim=DECIM
set fgpa decimation rate to DECIM [default=16]
-f FREQ, --freq=FREQ set frequency to FREQ
-g GAIN, --gain=GAIN set gain in dB (default is midpoint)
-8, --width-8 Enable 8-bit samples across USB
–no-hb don’t use halfband filter in usrp
-s, --output-shorts output interleaved shorts in stead of complex
floats
-N NSAMPLES, --nsamples=NSAMPLES
number of samples to collect [default=+inf]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHz16dy9GYuuMoUJ4RAnooAJ9PzrkjOHAaUBL3KZtjERARdC4DUgCeMqRp
bw6GeA/8VwSgqN+jdpezNKM=
=U3KX
-----END PGP SIGNATURE-----