请教GNURadio的example错误

41 views
Skip to first unread message

jaypei

unread,
Oct 15, 2009, 4:38:59 AM10/15/09
to GNU Radio / USRP 中文论坛
大家好。
刚刚接触GNURadio和USRP,今天在Fedora11里编译完后运行"gnuradio-examples/python/apps/
hf_explorer/"中的例程,使用的命令如下

./hfx2.py 9500k

输出如下错误:

Unable to find PowerMate or Contour Shuttle
usrp: failed to find usrp[0]
Traceback (most recent call last):
File "./hfx2.py", line 799, in <module>
app = MyApp(0)
File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/
_core.py", line 7938, in __init__
self._BootstrapApp()
File "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/
_core.py", line 7512, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "./hfx2.py", line 794, in OnInit
frame = MyFrame(None, -1, "HF Explorer 2")
File "./hfx2.py", line 248, in __init__
self.src = usrp.source_s(decim_rate=options.decim)
File "/usr/lib/python2.6/site-packages/gnuradio/usrp/usrp_swig.py",
line 2059, in source_s
return _usrp_swig.source_s(*args, **kwargs)
RuntimeError: can't open usrp

====================

请问:
这个usrp模块应该怎么找到?

pei jay

unread,
Oct 15, 2009, 4:40:45 AM10/15/09
to GNU Radio / USRP 中文论坛
命令写错了,是
./hfx2.py -c 9500k

High Mesh China

unread,
Oct 15, 2009, 10:31:17 AM10/15/09
to jaypei, GNU Radio / USRP 中文论坛
1、USRP电源插好没?
2、USB线插好没?

2009/10/15 jaypei <jaype...@gmail.com>

Lin HUANG

unread,
Oct 15, 2009, 10:34:34 AM10/15/09
to GNU Radio / USRP 中文论坛
恩,他的问题是没有插板卡

---------- Forwarded message ----------
From: Lin HUANG <huangl...@gmail.com>
Date: 2009/10/15
Subject: Re: [gnuradio-usrp-ch] Re: 请教GNURadio的example错误
To: pei jay <jaype...@gmail.com>


这个程序需要你连接usrp,它没能打开usrp,所以就报错了。
好象有个grc的例子可以不需要usrp

2009/10/15 pei jay <jaype...@gmail.com>
是这样,usrp下周才能拿到,我只是先试一下环境,不过这个python找不到模块的错误不解决接上usrp也会有这个错误呀


jaypei

unread,
Oct 16, 2009, 3:34:50 AM10/16/09
to GNU Radio / USRP 中文论坛
今天看代码了,是Runtime error,这个错误原来是swig调用C++那里报出来的错误呀。

果然是因为没有连接的原因。

再次感谢两位。

Reply all
Reply to author
Forward
0 new messages