From d47f0aeab7343fb033352e2ddb787c1dc95d660d Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Wed, 12 Oct 2011 22:13:45 -0400 Subject: digital: sneaking in a fix to cpm.py here. Working with benchmark_tx. Also adding some print statements to benchmark script to indicate what type of source/sink is being used. --- gr-digital/examples/narrowband/benchmark_rx.py | 2 ++ gr-digital/examples/narrowband/benchmark_tx.py | 2 ++ 2 files changed, 4 insertions(+) (limited to 'gr-digital/examples/narrowband') diff --git a/gr-digital/examples/narrowband/benchmark_rx.py b/gr-digital/examples/narrowband/benchmark_rx.py index a8a2e92c4..143948194 100755 --- a/gr-digital/examples/narrowband/benchmark_rx.py +++ b/gr-digital/examples/narrowband/benchmark_rx.py @@ -51,8 +51,10 @@ class my_top_block(gr.top_block): options.samples_per_symbol = self.source._sps elif(options.from_file is not None): + sys.stderr.write(("Reading samples from '%s'.\n\n" % (options.from_file))) self.source = gr.file_source(gr.sizeof_gr_complex, options.from_file) else: + sys.stderr.write("No source defined, pulling samples from null source.\n\n") self.source = gr.null_source(gr.sizeof_gr_complex) # Set up receive path diff --git a/gr-digital/examples/narrowband/benchmark_tx.py b/gr-digital/examples/narrowband/benchmark_tx.py index 39b0066f4..6f1d75281 100755 --- a/gr-digital/examples/narrowband/benchmark_tx.py +++ b/gr-digital/examples/narrowband/benchmark_tx.py @@ -50,8 +50,10 @@ class my_top_block(gr.top_block): options.samples_per_symbol = self.sink._sps elif(options.to_file is not None): + sys.stderr.write(("Saving samples to '%s'.\n\n" % (options.to_file))) self.sink = gr.file_sink(gr.sizeof_gr_complex, options.to_file) else: + sys.stderr.write("No sink defined, dumping samples to null sink.\n\n") self.sink = gr.null_sink(gr.sizeof_gr_complex) # do this after for any adjustments to the options that may -- cgit