Difference between usrp in gnuradio and usrp in grc_gnuradio

I’m examining a GNU Radio Lab material:
Blad, Olofsson - 2011 - Software-Defined Radio Lab 1 Getting in Touch
with
GNU Radio and the
USRPhttp://dl.dropbox.com/u/11382666/Blad%2C%20Olofsson%20-%202011%20-%20Software-Defined%20Radio%20Lab%201%20Getting%20in%20Touch%20with%20GNU%20Radio%20and%20the%20USRP.pdf

This uses LFRX/LFTX daughterboards and the following codes for
transmitting
a signal (assume all variables are set correctly):

from gnuradio import usrp

… blahblah

subdev_spec = (0,0)
subdev = self.u.selected_subdev(subdev_spec)
self.u.set_mux(self.u.determine_tx_mux_value(subdev_spec))
self.u.tune(0, subdev, carrier)
subdev.set_gain(0)

Currently, however, I wanted to modify this codes for a RFX2400
daughterboard, and when I use that codes without any changes, it doesn’t
work
I cannot see anything but noise with usrp_fft.py. Thus, I changed the
codes
with the following:

from grc_gnuradio import usrp as grc_usrp

… blahblah

self.usrp_simple_sink_x_0 = grc_usrp.simple_sink_c(which=0, side=“A”)
self.usrp_simple_sink_x_0.set_interp_rate(500)
self.usrp_simple_sink_x_0.set_frequency(2.412*(10**9), verbose=False)
self.usrp_simple_sink_x_0.set_gain(0)
self.usrp_simple_sink_x_0.set_enable(True)
self.usrp_simple_sink_x_0.set_auto_tr(True)

And then it finally works fine.

Is there any difference between using usrp in gnuradio and usrp in
grc_gnuradio ?
And the former code is only working for LFRX/LFTX ? and the latter one
is
working for other ones?

Is there any difference between using usrp in gnuradio and usrp in
grc_gnuradio ?
And the former code is only working for LFRX/LFTX ? and the latter one is
working for other ones?

The grc_gnuradio is a USRP API wrapper (written in python). I created
this wrapper for GRC because the gr-usrp API was very difficult to use.

However, you should know that both APIs have been replaced by the gr-uhd
component. Examples can be found here:
http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/examples

-Josh

Hi Songsong ,
The lab material which you have mentioned seems to be good one. Can you
share some more if they are available. It will be a good reference to
start
with GnuRadio for beginners.

Thanks

Songsong G. wrote:

from gnuradio import usrp
work
self.usrp_simple_sink_x_0.set_enable(True)


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/Difference-between-usrp-in-gnuradio-and-usrp-in-grc_gnuradio-tp33567618p33569420.html
Sent from the GnuRadio mailing list archive at Nabble.com.