[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r4178 - gnuradio/branches/developers/n4hy/ofdm/gnuradi
From: |
n4hy |
Subject: |
[Commit-gnuradio] r4178 - gnuradio/branches/developers/n4hy/ofdm/gnuradio-examples/python/ofdm |
Date: |
Wed, 20 Dec 2006 19:44:55 -0700 (MST) |
Author: n4hy
Date: 2006-12-20 19:44:55 -0700 (Wed, 20 Dec 2006)
New Revision: 4178
Modified:
gnuradio/branches/developers/n4hy/ofdm/gnuradio-examples/python/ofdm/benchmark_ofdm.py
Log:
added throttle to ofdm test code and tied to sample rate input option
Modified:
gnuradio/branches/developers/n4hy/ofdm/gnuradio-examples/python/ofdm/benchmark_ofdm.py
===================================================================
---
gnuradio/branches/developers/n4hy/ofdm/gnuradio-examples/python/ofdm/benchmark_ofdm.py
2006-12-21 02:33:08 UTC (rev 4177)
+++
gnuradio/branches/developers/n4hy/ofdm/gnuradio-examples/python/ofdm/benchmark_ofdm.py
2006-12-21 02:44:55 UTC (rev 4178)
@@ -73,6 +73,7 @@
noise_voltage = math.sqrt(noise_power_required)
self.txpath = transmit_path(self, options)
+ self.throttle = gr.throttle(gr.sizeof_gr_complex, options.sample_rate)
self.rxpath = receive_path(self, callback, options)
if channel_on:
@@ -80,7 +81,7 @@
self.connect(self.txpath, self.channel)
self.connect(self.channel, self.rxpath)
else:
- self.connect(self.txpath, self.rxpath)
+ self.connect(self.txpath, self.throttle, self.rxpath)
self.connect(self.txpath, gr.file_sink(gr.sizeof_gr_complex, "tx"))
self.connect(self.rxpath.ofdm_demod.ofdm_rx,
gr.file_sink(options.fft_length*gr.sizeof_gr_complex, "rx"))
@@ -111,7 +112,7 @@
help="set packet size [default=%default]")
parser.add_option("-M", "--megabytes", type="eng_float", default=1.0,
help="set megabytes to transmit [default=%default]")
- parser.add_option("-r", "--sample-rate", type="eng_float", default=48000,
+ parser.add_option("-r", "--sample-rate", type="eng_float", default=1e5,
help="set sample rate to RATE (%default)")
parser.add_option("", "--snr", type="eng_float", default=30,
help="set the SNR of the channel in dB
[default=%default]")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r4178 - gnuradio/branches/developers/n4hy/ofdm/gnuradio-examples/python/ofdm,
n4hy <=