Forum: GNU Radio Replacing USRP package with UHD package

Posted by Songsong Gee (Guest)
on 2013-03-16 09:54
(Received via mailing list)
I have a python code that uses usrp package from gnuradio
However, as GNUradio gets updated, usrp package is deprecated and uhd
package is recommended.

Thus, is there any way to modifying the code to use uhd package instead 
of
usrp package?
Is it okay to just replace* *'from gnuradio import usrp' with 'from
gnuradio import uhd' ?

FYI, my code use both RX and TX
Posted by Tom Rondeau (Guest)
on 2013-03-16 15:28
(Received via mailing list)
On Sat, Mar 16, 2013 at 4:53 AM, Songsong Gee <gee.songsong@gmail.com> 
wrote:
> I have a python code that uses usrp package from gnuradio
> However, as GNUradio gets updated, usrp package is deprecated and uhd
> package is recommended.
>
> Thus, is there any way to modifying the code to use uhd package instead of
> usrp package?
> Is it okay to just replace 'from gnuradio import usrp' with 'from gnuradio
> import uhd' ?
>
> FYI, my code use both RX and TX

Yes, pretty much. There are a few changes but the interface is largely
the same. Mostly the UHD interface has added capabilities, but that
means you shouldn't have too much trouble going from libusrp to
libuhd.

Tom
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.