|
From: | Kyeong Su Shin |
Subject: | Re: [Discuss-gnuradio] ImportError: cannot import name usrp |
Date: | Tue, 15 Oct 2019 02:35:33 +0000 |
Hello Laura (and to whom it may concern),
I believe that what you have there are legacy codes which use libusrp, instead of libuhd. libusrp has been replaced by libuhd a few years ago.
As Nate suggested, please replace all blocks with on libusrp to libuhd. It shouldn't be too hard. (see:
https://www.gnuradio.org/doc/sphinx-v3.7.9.2/uhd_blocks.html#gnuradio.uhd.usrp_sink ,
https://www.gnuradio.org/doc/sphinx-v3.7.9.2/uhd_blocks.html#gnuradio.uhd.usrp_source )
For the interpolation rate, I think you can replace that with set_samp_rate (not too sure, though) as I am not particularly familiar with libusrp).
Regards,
Kyeong Su Shin
보낸 사람: Laura Arjona <address@hidden> 대신 Discuss-gnuradio <discuss-gnuradio-bounces+ksshin=address@hidden>
보낸 날짜: 2019년 10월 15일 화요일 오전 4:58 받는 사람: Nate Temple <address@hidden> 참조: GNURadio Discussion List <address@hidden> 제목: Re: [Discuss-gnuradio] ImportError: cannot import name usrp of course, thank you.
This is the code (old) I am trying to adapt to use it.
tx = usrp.sink_c(fusb_block_size = 1024, fusb_nblocks=8)
tx.set_interp_rate(interp_rate) tx_subdev = (0,0) tx.set_mux(usrp.determine_tx_mux_value(tx, tx_subdev)) subdev = usrp.selected_subdev(tx, tx_subdev) subdev.set_enable(True) subdev.set_gain(subdev.gain_range()[2]) t = tx.tune(subdev.which(), subdev, freq) On Fri, Oct 11, 2019 at 1:39 PM Nate Temple <address@hidden> wrote:
-- Laura Arjona
Washington Research Foundation Innovation Postdoctoral Fellow in Neuroengineering
Paul G. Allen School of Computer Science & Engineering
185 E Stevens Way NE
University of Washington
Seattle, WA 98195-2350
|
[Prev in Thread] | Current Thread | [Next in Thread] |