Sunday, August 30, 2015

Re: [Discuss-gnuradio] Gain and Sample Rate Setting

Besides the problem I had above, there seems to be a new one. Till that
day, I used to get some output, but today, when I tried to run the
./benchmark_tx.py -f 2.435G command, I am getting the following error

Traceback (most recent call last):
File "./benchmark_tx.py", line 147, in <module>
main()
File "./benchmark_tx.py", line 111, in main
tb = my_top_block(mods[options.modulation], options)
File "./benchmark_tx.py", line 49, in __init__
options.antenna, options.verbose)
File
"/usr/local/share/gnuradio/examples/digital/narrowband/uhd_interface.py",
line 135, in __init__
freq, gain, antenna)
File
"/usr/local/share/gnuradio/examples/digital/narrowband/uhd_interface.py",
line 62, in __init__
self._rate, self._sps = self.set_sample_rate(bitrate, sps)
File
"/usr/local/share/gnuradio/examples/digital/narrowband/uhd_interface.py",
line 70, in set_sample_rate
asked_samp_rate = bitrate * req_sps
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'

But the receiver is working just fine. I don't know what mistake is
present in my benchmark transmission file. Please help me with this. I
am attaching the same benchmark scripts.

Thanks,
Ben

Attachments:
http://www.ruby-forum.com/attachment/11065/uhd_interface.py
http://www.ruby-forum.com/attachment/11066/benchmark_tx.py
http://www.ruby-forum.com/attachment/11067/transmit_path.py


--
Posted via http://www.ruby-forum.com/.

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment