diff options
author | Tom Rondeau | 2010-05-10 20:10:32 -0400 |
---|---|---|
committer | Tom Rondeau | 2010-05-10 20:10:32 -0400 |
commit | f20b3e2a48a4b9ae7a8b87b1361749c290d99e39 (patch) | |
tree | 8c2f3c303870302f3806017087177749d894e0c3 /gr-qtgui/src/python/qt_digital.py | |
parent | 89ceb6c846e5b859d8fdef4fef84093f18efd3da (diff) | |
download | gnuradio-f20b3e2a48a4b9ae7a8b87b1361749c290d99e39.tar.gz gnuradio-f20b3e2a48a4b9ae7a8b87b1361749c290d99e39.tar.bz2 gnuradio-f20b3e2a48a4b9ae7a8b87b1361749c290d99e39.zip |
Changes to the examples to fit updates to qtgui.
Diffstat (limited to 'gr-qtgui/src/python/qt_digital.py')
-rwxr-xr-x | gr-qtgui/src/python/qt_digital.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gr-qtgui/src/python/qt_digital.py b/gr-qtgui/src/python/qt_digital.py index ceb492c8d..679f144ef 100755 --- a/gr-qtgui/src/python/qt_digital.py +++ b/gr-qtgui/src/python/qt_digital.py @@ -139,7 +139,7 @@ class my_top_block(gr.top_block): self.qapp = QtGui.QApplication(sys.argv) - self._sample_rate = 200e3 + self._sample_rate = 2000e3 self.sps = 2 self.excess_bw = 0.35 @@ -182,11 +182,13 @@ class my_top_block(gr.top_block): self.to = 1.0 self.channel = gr.channel_model(noise, self.fo, self.to) - self.thr = gr.throttle(gr.sizeof_char, 10*fftsize) - self.snk_tx = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS, 0, 1, + self.thr = gr.throttle(gr.sizeof_char, self._sample_rate) + self.snk_tx = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS, + 0, self._sample_rate*self.sps, "Tx", True, True, False, True, True) - self.snk_rx = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS, 0, 1, + self.snk_rx = qtgui.sink_c(fftsize, gr.firdes.WIN_BLACKMAN_hARRIS, + 0, self._sample_rate, "Rx", True, True, False, True, True) self.connect(self.src, self.thr, self.mod, self.channel, self.snk_tx) |