summaryrefslogtreecommitdiff
path: root/gr-digital/examples/benchmark_rx.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-digital/examples/benchmark_rx.py')
-rwxr-xr-xgr-digital/examples/benchmark_rx.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-digital/examples/benchmark_rx.py b/gr-digital/examples/benchmark_rx.py
index 9d8734e3d..9390540dd 100755
--- a/gr-digital/examples/benchmark_rx.py
+++ b/gr-digital/examples/benchmark_rx.py
@@ -48,11 +48,14 @@ class my_top_block(gr.top_block):
self.rxpath = receive_path(demodulator, rx_callback, options)
if(options.from_file is not None):
+ self.thr = gr.throttle(gr.sizeof_gr_complex, 1e6)
self.source = gr.file_source(gr.sizeof_gr_complex, options.from_file)
+ self.connect(self.source, self.thr, self.rxpath)
else:
+ self.thr = gr.throttle(gr.sizeof_gr_complex, 1e6)
self.source = gr.null_source(gr.sizeof_gr_complex)
+ self.connect(self.source, self.thr, self.rxpath)
- self.connect(self.source, self.rxpath)
# /////////////////////////////////////////////////////////////////////////////
# main