summaryrefslogtreecommitdiff
path: root/gr-digital/examples/narrowband
diff options
context:
space:
mode:
authorTom Rondeau2011-10-12 22:13:45 -0400
committerTom Rondeau2011-10-12 22:13:45 -0400
commitd47f0aeab7343fb033352e2ddb787c1dc95d660d (patch)
tree9351bf61345678e84d16092124d769727ed374d8 /gr-digital/examples/narrowband
parent60b3bd32aa145522a1eaf9978e594ed13b9a6bc5 (diff)
downloadgnuradio-d47f0aeab7343fb033352e2ddb787c1dc95d660d.tar.gz
gnuradio-d47f0aeab7343fb033352e2ddb787c1dc95d660d.tar.bz2
gnuradio-d47f0aeab7343fb033352e2ddb787c1dc95d660d.zip
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.
Diffstat (limited to 'gr-digital/examples/narrowband')
-rwxr-xr-xgr-digital/examples/narrowband/benchmark_rx.py2
-rwxr-xr-xgr-digital/examples/narrowband/benchmark_tx.py2
2 files changed, 4 insertions, 0 deletions
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