discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] usrp_basic and gr_block


From: Michael Ford
Subject: Re: [Discuss-gnuradio] usrp_basic and gr_block
Date: Sun, 18 Jun 2006 14:18:01 -0500

after setting the PYTHONPATH variable to point to ~/gr-build/gr-usrp/src/ (where usrp1.py is located), I ran my python test script, and got the following error:


$ python test_sender.py Traceback (most recent call last):
  File "test_sender.py", line 22, in ?
    import usrp1
  File "/home/mford1/gr-build/gr-usrp/src/usrp1.py", line 4, in ?
    import _usrp1
ImportError: No module named _usrp1

After searching my computer, I find that there is in fact no module called _usrp1, only a libtool file in the ~/gr-build/gr-usrp/src/ directory called usrp1.la. I'm guessing there might be something wrong with my installation.

-Michael Ford-


On 6/18/06, Michael Ford <address@hidden> wrote:
I apologize for not responding earlier - I found the usrp1.i file not long after I made my post. I was confused at first because in my search for the read_aux_adc() function, I had originally found it in usrp_basic.{cc, h}

-Michael Ford-


On 6/18/06, Eric Blossom < address@hidden> wrote:
On Sat, Jun 17, 2006 at 03:23:53PM -0500, Michael Ford wrote:
> I'm trying to use a function in the usrp_basic class, but there's no SWIG .i
> script for it. While looking at the tutorials, I read that all processing
> blocks need to derive from the class gr_block. However, this isn't the case
> for usrp_basic. I guess this makes sense, as usrp_basic isn't really a
> processing block - the function I'm wanting to use just reads input from the
> RSSI circuit. Should I be consulting the Dawei Shen's processing block
> tutorial at all then? the usrp_basic class isn't even under the gr package.


Hi Michael,

Pretty much all of usrp_basic.h as well as usrp_standard.h is wrapped
by gr-usrp/src/usrp1.i.  The usrp specific classes that derive from
gr_block are usrp1_source_base.h and usrp1_sink_base.h.

I recall Matt mentioning that to read the RSSI you use one of the aux
adcs.  These are already wrapped.

See usrp1.i:

  int read_aux_adc (int which_dboard, int which_adc);

Eric



reply via email to

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