X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-examples%2Fpython%2Fusrp%2Ffm_tx4.py;h=a51668dde8c8b60d2630937a020845eb80900ac5;hb=85aad96915db5f53897f91257794c85eb67f39d4;hp=a71eeaa5aab0dd3717695da1ee3badbcd8008f00;hpb=787c17cfed1d89d6219a2dd36029d3da8025c726;p=debian%2Fgnuradio diff --git a/gnuradio-examples/python/usrp/fm_tx4.py b/gnuradio-examples/python/usrp/fm_tx4.py index a71eeaa5..a51668dd 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)