diff options
author | n4hy | 2008-07-04 02:45:05 +0000 |
---|---|---|
committer | n4hy | 2008-07-04 02:45:05 +0000 |
commit | d1c82f20a2180782a666074c434812dbea3b8ca8 (patch) | |
tree | 4bd9e41594dd2f87bd9c874c49421d970ac57718 /gr-msdd6000/src/qa_msdd_source_simple.py | |
parent | a5c340d582265522d2fd7f42b9b02a672a2187c9 (diff) | |
download | gnuradio-d1c82f20a2180782a666074c434812dbea3b8ca8.tar.gz gnuradio-d1c82f20a2180782a666074c434812dbea3b8ca8.tar.bz2 gnuradio-d1c82f20a2180782a666074c434812dbea3b8ca8.zip |
msdd6000 source upgraded and enabled
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8782 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-msdd6000/src/qa_msdd_source_simple.py')
-rwxr-xr-x | gr-msdd6000/src/qa_msdd_source_simple.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gr-msdd6000/src/qa_msdd_source_simple.py b/gr-msdd6000/src/qa_msdd_source_simple.py new file mode 100755 index 000000000..5262fcef0 --- /dev/null +++ b/gr-msdd6000/src/qa_msdd_source_simple.py @@ -0,0 +1,45 @@ +#!/usr/bin/python + +from pylab import *; +#from scipy.fftpack import fftshift; + +import math; + +from gnuradio import msdd,gr; + + +tb = gr.top_block(); + + +src = msdd.source_simple("10.45.4.43",0); +convert = gr.interleaved_short_to_complex(); +sink = gr.vector_sink_c(); + +gain = 40; + +fc = 2.4e9; + +src.set_decim_rate(8); +#src.set_rx_freq(0,3500000000); +src.set_rx_freq(0,fc); +src.set_pga(0,gain); + + +tb.connect(src, convert, sink); + + +tb.start(); + +v = [] +for i in range(0,10000): + b = math.sqrt(i); + v.append(b); + +tb.stop(); + +#print sink.data(); + +data = sink.data(); + +plot(10*log10(fftshift(fft(sink.data())))); +show(); |