I try to run the fm transmitter example in the gnu example directory
I got the error like
“AttributeError: ‘db_basic_tx’ object has no attribute ‘which’”
I gave the following command,
[root@tkp usrp]# python fm_tx4.py --tx-subdev-spec=A --freq=100M
–nchannels=1
I got the following comments
Using TX d’board A: Basic Tx
Traceback (most recent call last):
File “fm_tx4.py”, line 197, in
main ()
File “fm_tx4.py”, line 193, in main
app = stdgui2.stdapp(fm_tx_block, “Multichannel FM Tx”, nstatus=1)
File “/usr/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line
36, in init
wx.App.init (self, redirect=False)
File
“/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7935, in init
self._BootstrapApp()
File
“/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py”,
line 7509, in _BootstrapApp
return core.PyApp__BootstrapApp(*args, **kwargs)
File “/usr/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line
39, in OnInit
frame = stdframe (self.top_block_maker, self.title, self._nstatus)
File “/usr/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line
60, in init
self.panel = stdpanel (self, self, top_block_maker)
File “/usr/lib/python2.5/site-packages/gnuradio/wxgui/stdgui2.py”,
line
81, in init
self.top_block = top_block_maker (frame, self, vbox, sys.argv)
File “fm_tx4.py”, line 127, in init
if not self.set_freq(options.freq):
File “fm_tx4.py”, line 180, in set_freq
r = self.u.tune(self.subdev.which(), self.subdev, target_freq)
AttributeError: ‘db_basic_tx’ object has no attribute ‘which’
I used the basic transmitter board.
please guide me
thanks and regards
tushar patel