> Hi
>
> I am trying to make digital-bert scripts work with USRP N200,
> RFX2400. I have changed my code a little bit. But it shows me an error
> saying "object has no attribute".
>
>
> aravind@COE-2X85V91:~/gnuradio/gnuradio-examples/python/digital-bert$
> ./benchmark_tx1.py -f 2500M
> linux; GNU C++ version 4.4.5; Boost_104200; UHD_003.001.002-ba0e3c8
>
> >>> gr_fir_ccf: using SSE
> Modulation: 250k bits/sec
> TX IF rate: 500k samples/sec
> USRP interpolation: 256
> DAC amplitude: 2000
> Traceback (most recent call last):
> File "./benchmark_tx1.py", line 108, in <module>
> tb = tx_bpsk_block(options)
> File "./benchmark_tx1.py", line 52, in __init__
> self._setup_usrp(options.ip,
> File
> "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/top_block.py",
> line 94, in __getattr__
> return getattr(self._tb, name)
> AttributeError: 'gr_top_block_sptr' object has no attribute '_setup_usrp'
>
> Can anyone help me out, how to resolve this error ? Attached is my
> little modified code.
> --
> Saketh Kumar
two things that immediately leap to mind:
o Indentation matters in Python. Your definition of _setup_usrp
isn't within the class definition for tx_bpsk_block
o The most recent UHD doesn't distinguish between "single_usrp" and
"multi_usrp", there's just a "usrp_source" and "usrp_sink"
object.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment