diff options
author | jcorgan | 2007-11-27 20:06:08 +0000 |
---|---|---|
committer | jcorgan | 2007-11-27 20:06:08 +0000 |
commit | f845cd62f4bc202dc3c23a916a6699a1afb2f40d (patch) | |
tree | 91b42cdd1134de3a0cd619a5fb11d86fbe93e03e /gr-sounder | |
parent | 0795ff1cc1f886c9749a4f95cd708190ec7eef20 (diff) | |
download | gnuradio-f845cd62f4bc202dc3c23a916a6699a1afb2f40d.tar.gz gnuradio-f845cd62f4bc202dc3c23a916a6699a1afb2f40d.tar.bz2 gnuradio-f845cd62f4bc202dc3c23a916a6699a1afb2f40d.zip |
Implements ticket:208
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7045 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-sounder')
-rw-r--r-- | gr-sounder/src/python/sounder.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-sounder/src/python/sounder.py b/gr-sounder/src/python/sounder.py index 16eca4be6..85c03b0e1 100644 --- a/gr-sounder/src/python/sounder.py +++ b/gr-sounder/src/python/sounder.py @@ -90,7 +90,7 @@ class sounder_rx: self._verbose = verbose self._debug = debug - self._fg = gr.flow_graph() + self._tb = gr.top_block() self._u = usrp.source_c(fpga_filename='usrp_sounder.rbf') if not self._loopback: if self._subdev_spec == None: @@ -110,7 +110,7 @@ class sounder_rx: print "Using smoothing alpha of", self._alpha self._lpf = gr.single_pole_iir_filter_cc(self._alpha, self._length) self._sink = gr.message_sink(self._vblen, self._msgq, True) - self._fg.connect(self._u, self._s2v, self._lpf, self._sink) + self._tb.connect(self._u, self._s2v, self._lpf, self._sink) def tune(self, frequency): if self._verbose: @@ -135,17 +135,17 @@ class sounder_rx: def start(self): if self._debug: print "Starting receiver flow graph." - self._fg.start() + self._tb.start() def wait(self): if self._debug: print "Waiting for threads..." - self._fg.wait() + self._tb.wait() def stop(self): if self._debug: print "Stopping receiver flow graph." - self._fg.stop() + self._tb.stop() self.wait() if self._debug: print "Receiver flow graph stopped." |