diff options
Diffstat (limited to 'gr-qtgui/examples/pyqt_waterfall_c.py')
-rwxr-xr-x | gr-qtgui/examples/pyqt_waterfall_c.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-qtgui/examples/pyqt_waterfall_c.py b/gr-qtgui/examples/pyqt_waterfall_c.py index eb7e731dfd..30931227b3 100755 --- a/gr-qtgui/examples/pyqt_waterfall_c.py +++ b/gr-qtgui/examples/pyqt_waterfall_c.py @@ -37,6 +37,12 @@ except ImportError: sys.stderr.write("Error: Program requires gr-analog.\n") sys.exit(1) +try: + from gnuradio import channels +except ImportError: + sys.stderr.write("Error: Program requires gr-channels.\n") + sys.exit(1) + class dialog_box(QtGui.QWidget): def __init__(self, display, control): QtGui.QWidget.__init__(self, None) @@ -152,7 +158,7 @@ class my_top_block(gr.top_block): src1 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f1, 0.1, 0) src2 = analog.sig_source_c(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0) src = gr.add_cc() - channel = filter.channel_model(0.01) + channel = channels.channel_model(0.01) thr = gr.throttle(gr.sizeof_gr_complex, 100*npts) self.snk1 = qtgui.waterfall_sink_c(npts, filter.firdes.WIN_BLACKMAN_hARRIS, 0, Rs, |