diff options
author | Tom Rondeau | 2011-04-24 10:23:05 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-04-24 10:23:05 -0400 |
commit | 88f157a1a71e0a3603a912e437ad5d2c07ffc8b9 (patch) | |
tree | 7f5305a8f29c8ea0776daba661d60d082410e583 /gr-qtgui/apps/pyqt_example_f.py | |
parent | c7b491e220394efde4828b443237dcea10cbae45 (diff) | |
parent | 371ca93c2a1506d22db69fb96b2cf7d4ed132535 (diff) | |
download | gnuradio-88f157a1a71e0a3603a912e437ad5d2c07ffc8b9.tar.gz gnuradio-88f157a1a71e0a3603a912e437ad5d2c07ffc8b9.tar.bz2 gnuradio-88f157a1a71e0a3603a912e437ad5d2c07ffc8b9.zip |
Merge branch 'qtgui_time'
Conflicts:
gr-qtgui/apps/pyqt_example_f.py
Diffstat (limited to 'gr-qtgui/apps/pyqt_example_f.py')
-rwxr-xr-x | gr-qtgui/apps/pyqt_example_f.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gr-qtgui/apps/pyqt_example_f.py b/gr-qtgui/apps/pyqt_example_f.py index 9e5d04008..2d957c85a 100755 --- a/gr-qtgui/apps/pyqt_example_f.py +++ b/gr-qtgui/apps/pyqt_example_f.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from gnuradio import gr, blks2 +from gnuradio import gr from gnuradio import qtgui from PyQt4 import QtGui, QtCore import sys, sip @@ -117,6 +117,8 @@ class my_top_block(gr.top_block): src2 = gr.sig_source_f(Rs, gr.GR_SIN_WAVE, f2, 0.1, 0) src = gr.add_ff() thr = gr.throttle(gr.sizeof_float, 100*fftsize) + noise = gr.noise_source_f(gr.GR_GAUSSIAN, 0.001) + add = gr.add_ff() self.snk1 = qtgui.sink_f(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS, 0, Rs, "Float Signal Example", @@ -124,7 +126,9 @@ class my_top_block(gr.top_block): self.connect(src1, (src,0)) self.connect(src2, (src,1)) - self.connect(src, thr, self.snk1) + self.connect(src, thr, (add,0)) + self.connect(noise, (add,1)) + self.connect(add, self.snk1) self.ctrl_win = control_box() self.ctrl_win.attach_signal1(src1) |