Replacing USRP package with UHD package

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

On Sat, Mar 16, 2013 at 4:53 AM, Songsong G. [email protected]
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

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