Error when using 'UHD: USRP Source' in GRC

Hi,

I’m having some trouble getting my N210 running using GRC. The problem
seems to be with the block ‘UHD: USRP Source’, as I get the following
error when building a simple project (USRP and FFT sink block):

Traceback (most recent call last):
File “/home/jotomo/Documents/usrp_n210/top_block.py”, line 74, in

tb = top_block()
File “/home/jotomo/Documents/usrp_n210/top_block.py”, line 51, in
init
num_channels=1,
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/init.py”, line
73, in constructor_interceptor
if kwargs.has_key(key): kwargs[key] = cast(kwargs[key])
File
“/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/uhd_swig.py”, line
409, in init
this = _uhd_swig.new_io_type_t(*args)
NotImplementedError: Wrong number or type of arguments for overloaded
function ‘new_io_type_t’.
Possible C/C++ prototypes are:
uhd::io_type_t(uhd::io_type_t::tid_t)
uhd::io_type_t(size_t)

The only potential solution that I have found so far is described here:

http://lists.gnu.org/archive/html/discuss-gnuradio/2009-12/msg00036.html

However, I’m hoping that I can find a more straightforward solution than
removing all of the libraries and reinstalling, since I just performed
the install. I’m using Ubuntu 10.10 and am running the latest version
of gnu-radio. I’m able to run the UHD examples on the N210 without any
problems, and have been successful with GRC using a USRP2. Any help
would be greatly appreciated!

Thanks,
Jordan

“/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/init.py”,
line 73, in constructor_interceptor if kwargs.has_key(key):
kwargs[key] = cast(kwargs[key]) File
“/usr/local/lib/python2.6/dist-packages/gnuradio/uhd/uhd_swig.py”,
line 409, in init this = _uhd_swig.new_io_type_t(*args)
NotImplementedError: Wrong number or type of arguments for overloaded
function ‘new_io_type_t’. Possible C/C++ prototypes are:
uhd::io_type_t(uhd::io_type_t::tid_t) uhd::io_type_t(size_t)

Thats a strange error. Can you attach your top_block.py?

Can you run the following commands and post the verbose:

python -c “from gnuradio import uhd; x =
uhd.io_type(uhd.io_type.COMPLEX_FLOAT32); print x”
python -c “from gnuradio import uhd; x =
uhd.usrp_source(device_addr=‘addr=192.168.10.2’,
io_type=uhd.io_type.COMPLEX_FLOAT32, num_channels=1); print x”
python -c “from gnuradio import uhd; x = uhd.usrp_source(‘addr=192.168.10.2’,
uhd.io_type.COMPLEX_FLOAT32, 1); print x”

-Josh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs