summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/usrp/fm_tx4.py
diff options
context:
space:
mode:
authorjcorgan2008-12-24 08:10:48 +0000
committerjcorgan2008-12-24 08:10:48 +0000
commit72c625f7e50b65dc3b642112762e9eb1d633bd42 (patch)
treeb83cbb7c9901b2d5fe6fda9dedb127c53b784e02 /gnuradio-examples/python/usrp/fm_tx4.py
parent06e7a0313a09ee812061d855a47206ed303eac7f (diff)
downloadgnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.tar.gz
gnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.tar.bz2
gnuradio-72c625f7e50b65dc3b642112762e9eb1d633bd42.zip
Merged r10071:10164 from features/cppdb-test into trunk. Implements the fully native C++ API for the USRP.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10165 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/usrp/fm_tx4.py')
-rwxr-xr-xgnuradio-examples/python/usrp/fm_tx4.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/gnuradio-examples/python/usrp/fm_tx4.py b/gnuradio-examples/python/usrp/fm_tx4.py
index a71eeaa5a..a51668dde 100755
--- a/gnuradio-examples/python/usrp/fm_tx4.py
+++ b/gnuradio-examples/python/usrp/fm_tx4.py
@@ -43,7 +43,7 @@ import math
import sys
from gnuradio.wxgui import stdgui2, fftsink2
-from gnuradio import tx_debug_gui
+#from gnuradio import tx_debug_gui
import wx
@@ -84,8 +84,8 @@ class fm_tx_block(stdgui2.std_top_block):
help="set Tx frequency to FREQ [required]", metavar="FREQ")
parser.add_option("-n", "--nchannels", type="int", default=4,
help="number of Tx channels [1,4]")
- parser.add_option("","--debug", action="store_true", default=False,
- help="Launch Tx debugger")
+ #parser.add_option("","--debug", action="store_true", default=False,
+ # help="Launch Tx debugger")
(options, args) = parser.parse_args ()
if len(args) != 0:
@@ -158,9 +158,9 @@ class fm_tx_block(stdgui2.std_top_block):
vbox.Add (post_mod.win, 1, wx.EXPAND)
- if options.debug:
- self.debugger = tx_debug_gui.tx_debug_gui(self.subdev)
- self.debugger.Show(True)
+ #if options.debug:
+ # self.debugger = tx_debug_gui.tx_debug_gui(self.subdev)
+ # self.debugger.Show(True)
def set_freq(self, target_freq):
@@ -177,7 +177,7 @@ class fm_tx_block(stdgui2.std_top_block):
any residual_freq to the s/w freq translater.
"""
- r = self.u.tune(self.subdev._which, self.subdev, target_freq)
+ r = self.u.tune(self.subdev.which(), self.subdev, target_freq)
if r:
print "r.baseband_freq =", eng_notation.num_to_str(r.baseband_freq)
print "r.dxc_freq =", eng_notation.num_to_str(r.dxc_freq)