[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9970 - gnuradio/trunk/gr-utils/src/python
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r9970 - gnuradio/trunk/gr-utils/src/python |
Date: |
Tue, 11 Nov 2008 08:51:23 -0700 (MST) |
Author: jcorgan
Date: 2008-11-11 08:51:23 -0700 (Tue, 11 Nov 2008)
New Revision: 9970
Modified:
gnuradio/trunk/gr-utils/src/python/usrp_fft.py
Log:
Add --fft-size command-line parameter, defaults to original behavior (1024)
Modified: gnuradio/trunk/gr-utils/src/python/usrp_fft.py
===================================================================
--- gnuradio/trunk/gr-utils/src/python/usrp_fft.py 2008-11-10 20:19:39 UTC
(rev 9969)
+++ gnuradio/trunk/gr-utils/src/python/usrp_fft.py 2008-11-11 15:51:23 UTC
(rev 9970)
@@ -77,6 +77,9 @@
help="Set fftsink averaging factor,
default=[%default]")
parser.add_option("", "--ref-scale", type="eng_float", default=13490.0,
help="Set dBFS=0dB input value, default=[%default]")
+ parser.add_option("", "--fft-size", type="int", default=1024,
+ help="Set FFT frame size");
+
(options, args) = parser.parse_args()
if len(args) != 0:
parser.print_help()
@@ -115,11 +118,11 @@
if options.waterfall:
self.scope = \
- waterfallsink2.waterfall_sink_c (panel, fft_size=1024,
sample_rate=input_rate)
+ waterfallsink2.waterfall_sink_c (panel,
fft_size=options.fft_size, sample_rate=input_rate)
elif options.oscilloscope:
self.scope = scopesink2.scope_sink_c(panel, sample_rate=input_rate)
else:
- self.scope = fftsink2.fft_sink_c (panel, fft_size=1024,
sample_rate=input_rate,
+ self.scope = fftsink2.fft_sink_c (panel,
fft_size=options.fft_size, sample_rate=input_rate,
ref_scale=options.ref_scale,
ref_level=0.0, y_divs = 10,
avg_alpha=options.avg_alpha)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9970 - gnuradio/trunk/gr-utils/src/python,
jcorgan <=