discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] 'gr_top_block_sptr' object has no attribute '_set


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] 'gr_top_block_sptr' object has no attribute '_setup_usrp'
Date: Thu, 04 Aug 2011 13:39:55 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0

On 04/08/2011 1:28 PM, saketh kumar wrote:
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".


address@hidden:~/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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]