summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/gr_spectrogram_plot_c
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-01-15 16:29:15 -0500
committerTom Rondeau <trondeau@vt.edu>2013-01-15 16:29:15 -0500
commitb059c724cc3929d7f2eaa55adeb20baabaa955e0 (patch)
tree7a1c31eb60da582a633f99806f52a4ce9132fc99 /gr-qtgui/apps/gr_spectrogram_plot_c
parent0270cf994f91d83bf224044cfc239a1ddcc6f18a (diff)
qtgui: added ability to clear waterfall plot data from GR block.
Diffstat (limited to 'gr-qtgui/apps/gr_spectrogram_plot_c')
-rwxr-xr-xgr-qtgui/apps/gr_spectrogram_plot_c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-qtgui/apps/gr_spectrogram_plot_c b/gr-qtgui/apps/gr_spectrogram_plot_c
index 160072f27c..de2bd09f39 100755
--- a/gr-qtgui/apps/gr_spectrogram_plot_c
+++ b/gr-qtgui/apps/gr_spectrogram_plot_c
@@ -85,6 +85,7 @@ class my_top_block(gr.top_block):
self.gui_snk = qtgui.waterfall_sink_c(self._psd_size, gr.firdes.WIN_BLACKMAN_hARRIS,
self._center_freq, self._samp_rate,
"GNU Radio Spectrogram Plot")
+
n = 0
self.srcs = list()
for f in filelist:
@@ -112,6 +113,7 @@ class my_top_block(gr.top_block):
def reset(self, newstart, newnsamps):
self.stop()
self.wait()
+ self.gui_snk.clear_data()
self._start = newstart
self._nsamps = newnsamps