Re: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

2008-11-14 Thread Johnathan Corgan
On Fri, Nov 14, 2008 at 7:53 AM, Catalin Lacatus
<[EMAIL PROTECTED]> wrote:

> I attached the results of svn info for:

Thanks.  While it looks like your repository is in order, the version
of the Python script you are running doesn't appear to match the
version of the USRP2 library that is actually installed on the system.

Other people who have recently reported similar issues as you have
solved it by doing a fresh rebuild and reinstallation of the code.
You can do this either by checking out a fresh version of the trunk,
or, by running 'make distclean', then repeating the usual steps for
configuration and installation.

-Johnathan


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


Re: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

2008-11-14 Thread Catalin Lacatus

Hello,

I attached the results of svn info for:

gnuradio
usrp2_wfm_rcv.py
usrp2_fft.py

The reversions are below.


gnuradio

Repository Root: http://gnuradio.org/svn

Repository UUID: 221aa14e-8319-0410-a670-987f0aec2ac5

Revision: 9900

Node Kind: directory

Schedule: normal

Last Changed Author: jcorgan

Last Changed Rev: 9863

Last Changed Date: 2008-10-26 23:09:27 -0400 (Sun, 26 Oct 2008)


usrp2_wfm_rcv.py

[EMAIL PROTECTED]:/home/gnuradio/gnuradio# svn info

Path: .

URL: http://gnuradio.org/svn/gnuradio/trunk

Repository Root: http://gnuradio.org/svn

Repository UUID: 221aa14e-8319-0410-a670-987f0aec2ac5

Revision: 9900

Node Kind: directory

Schedule: normal

Last Changed Author: eb

Last Changed Rev: 9878

Last Changed Date: 2008-10-27 12:36:52 -0400 (Mon, 27 Oct 2008)



usrp2_fft.py

[EMAIL PROTECTED]:/home/gnuradio/gnuradio/gr-utils/src/python# svn info

Path: .

URL: http://gnuradio.org/svn/gnuradio/trunk/gr-utils/src/python

Repository Root: http://gnuradio.org/svn

Repository UUID: 221aa14e-8319-0410-a670-987f0aec2ac5

Revision: 9900

Node Kind: directory

Schedule: normal

Last Changed Author: jcorgan

Last Changed Rev: 9864

Last Changed Date: 2008-10-26 23:32:36 -0400 (Sun, 26 Oct 2008)


Please let me know how I can solve this problem.

Thank you,

Catalin

Johnathan Corgan wrote:

On Thu, Nov 13, 2008 at 5:48 AM, Catalin LACATUS
<[EMAIL PROTECTED]> wrote:

  

-I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board and I
got the following error.
¨AttributeError: 'usrp2_source_32fc_sptr' object has no attribute
'adc_rate'¨



Could you please confirm which repository revision of software you are
using?  Change into the top level directory that you checked out the
source code into, and type:

$ svn info

On the surface, this looks like a version mismatch between the
usrp2_fft.py script and the rest of GNU Radio.  It could be other
things as well, however.

-Johnathan
  




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


Re: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

2008-11-13 Thread Johnathan Corgan
On Thu, Nov 13, 2008 at 5:48 AM, Catalin LACATUS
<[EMAIL PROTECTED]> wrote:

> -I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board and I
> got the following error.
> ¨AttributeError: 'usrp2_source_32fc_sptr' object has no attribute
> 'adc_rate'¨

Could you please confirm which repository revision of software you are
using?  Change into the top level directory that you checked out the
source code into, and type:

$ svn info

On the surface, this looks like a version mismatch between the
usrp2_fft.py script and the rest of GNU Radio.  It could be other
things as well, however.

-Johnathan


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


RE: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

2008-11-13 Thread Johnathan Corgan
On Thu, 2008-11-13 at 10:12 -0500, Newman, Timothy wrote:
> For both those functions you need to pass in the variable you want
> assigned the value as an input parameter.
> 
>  
> 
> Look at gnuradio/trunk/gr-usrp2/src/usrp2_source_base.cc for the
> function definitions of adc_rate and daughterboard_id.

Actually, that is correct for the C++ API, but for Python we add a small
shim to make it return the value instead of passing a pointer into it.
So the code in usrp2_fft.py is calling it correctly.

-Johnathan





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


Re: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

2008-11-13 Thread Johnathan Corgan
On Thu, 2008-11-13 at 08:48 -0500, Catalin LACATUS wrote:

> -I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board
> and I got the following error.
> ¨AttributeError: 'usrp2_source_32fc_sptr' object has no attribute
> 'adc_rate'¨

This likely a bug in the host driver for the USRP2; I will work on this
today.

-Johnathan



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


RE: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

2008-11-13 Thread Newman, Timothy
For both those functions you need to pass in the variable you want assigned the 
value as an input parameter.

 

Look at gnuradio/trunk/gr-usrp2/src/usrp2_source_base.cc for the function 
definitions of adc_rate and daughterboard_id.

 

Tim

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Catalin LACATUS
Sent: Thursday, November 13, 2008 8:48 AM
To: discuss-gnuradio@gnu.org
Subject: [Discuss-gnuradio] Running usrp2_wfm_rcv.py

 

Hello,

-I tried to run usrp2_wfm_rcv.py to test my USRP2 with a BasicRX board and I 
got the following error.
¨AttributeError: 'usrp2_source_32fc_sptr' object has no attribute 'adc_rate'¨

 

-After I set the adc_rate=100e6, I got the following error:

 

AttributeError: 'usrp2_source_32fc_sptr' object has no attribute 
'daughterboard_id' 

-Testing ./find-usrps script is running fine with following result.
00:50:c2:85:30:0a hw_rev = 0x0300

My configuration is
-Ubuntu 8.04, with the latest svn (7 days old)-USRP2 with a BasicRX
- I am using Netgear Gigabit switch to connect to fast Ethernet port on my 
laptop. I could not directly connect my Gigabit PCMCIA card to USRP2. 

Please let me know how I can fix the error AttributeError: 
'usrp2_source_32fc_sptr' object has no attribute 'daughterboard_id' 

Thank you,
-Catalin 

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