Re: [Discuss-gnuradio] usrp_basic and gr_block

2006-06-18 Thread Eric Blossom
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

Re: [Discuss-gnuradio] usrp_basic and gr_block

2006-06-18 Thread Michael Ford
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 [EMAIL PROTECTED] wrote: On Sat, Jun

Re: [Discuss-gnuradio] usrp_basic and gr_block

2006-06-18 Thread Michael Ford
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

Re: [Discuss-gnuradio] usrp_basic and gr_block

2006-06-18 Thread Michael Ford
This is all well for functions found in usrp.py, but even though I import usrp.py, and usrp.py successfully imports usrp1.py, I'm unable to successfully call functions from usrp1.py (i.e. read_aux_adc()). Calling the function with either a usrp- or usrp1- prefix gives me an error of the module not

Re: [Discuss-gnuradio] usrp_basic and gr_block

2006-06-18 Thread Eric Blossom
On Sun, Jun 18, 2006 at 06:34:19PM -0500, Michael Ford wrote: This is all well for functions found in usrp.py, but even though I import usrp.py, and usrp.py successfully imports usrp1.py, I'm unable to successfully call functions from usrp1.py (i.e. read_aux_adc()). Calling the function with

Re: [Discuss-gnuradio] usrp_basic and gr_block

2006-06-18 Thread Eric Blossom
On Sun, Jun 18, 2006 at 08:21:57PM -0500, Michael Ford wrote: Why are there almost no constructors defined in any of the usrp1.py classes? I was chugging along until I realized that most of the classes have no constructors. Should I be using the shared pointer classes? [In the future please be