discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] GRC question


From: Josh Blum
Subject: Re: [Discuss-gnuradio] GRC question
Date: Sat, 24 Jan 2009 22:52:41 -0800
User-agent: Thunderbird 2.0.0.0 (X11/20070326)

Funny, I was working on exactly this. The usrp dual source is underutilized, and Im giving the grc/usrp api an overhaul. It will be tested and checked in on monday.

The bug you are getting now is due to me forgetting to 100% fix something after the daughter board c++ switcheroo. So for now, in grc/src/grc_gnuradio/usrp/simple_usrp.py... look for

constructor = usrp.source_c

and replace it with

constructor = (usrp.source_c, )

sudo make install

Scott Bierly wrote:
Has anyone successfully used GRC with  USRP Dual Source and/or USRP Dual
Sink blocks?  The attached .grc file and .py file are my simple test case,
which bombs like this:

Generating: "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py"

Executing: "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py"

Traceback (most recent call last):
  File "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py", line
72, in <module>
    tb = Scott_Dual_FFT_RFX900()
  File "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py", line
45, in __init__
    tx_enb_b=True,
  File
"/usr/local/lib/python2.5/site-packages/grc_gnuradio/usrp/simple_usrp.py",
line 360, in __init__
    gr.io_signature(2, 2, constructor_to_size[self.constructor[0]]),
TypeError: 'instancemethod' object is unsubscriptable


I added the Sink to see what would happen, but originally only had the USRP
Dual Source as a simple diagnostic test, and that bombed this way:

Generating: "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py"

Executing: "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py"

Traceback (most recent call last):
  File "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py", line
56, in <module>
    tb = Scott_Dual_FFT_RFX900()
  File "/home/scott/src/gnuradio/scott-grc/Scott_Dual_FFT_RFX900.py", line
43, in __init__
    rx_ant_b="RX2",
  File
"/usr/local/lib/python2.5/site-packages/grc_gnuradio/usrp/simple_usrp.py",
line 320, in __init__
    gr.io_signature(2, 2, constructor_to_size[self.constructor[0]]),
TypeError: 'instancemethod' object is unsubscriptable

Done


I'm having a hard time figuring out from this what I might have done wrong.
I will confess I don't understand how to setup the mux yet, but that does
not appear to be related to this problem.

I'm running off the subversion gnuradio build 10260, which contains GRC
version 3.1SVN.

Thanks for any help.
--Scott



------------------------------------------------------------------------

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]