[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] strange inheritance in gnuradio.. or something wr
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] strange inheritance in gnuradio.. or something wrong with SWIG.. |
Date: |
Sun, 13 Sep 2009 11:29:01 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Sep 11, 2009 at 02:14:16AM -0700, tom_unaff wrote:
>
> Hello,
>
> I don't understand one think.. Class usrp_sink_c inherit from usrp_base a
> public method read_aux_adc(int,int).
>
> [code]
> int usrp_base::read_aux_adc (int which_dboard, int which_adc)
> {
> return d_usrp_basic->read_aux_adc (which_dboard, which_adc);}
> [/code]
>
> According to my OO knowledge objects of usrp_sinc_c should have this method.
> But it doesn't.
>
> I am trying to call method on usrp_sink_c object in python.
>
> [code]
> self.u = usrp_options.create_usrp_sink(options)
> dac_rate = self.u.dac_rate()
> rssi = self.u.read_aux_adc(0,0)
> [/code]
>
> But it doesn't work.
> Can someone explain me what strange things are happening here?
> Thanks in advance,
> Tom
Works for me:
address@hidden gnuradio-eb]$ python
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gnuradio import usrp
>>> u=usrp.sink_c(0)
>>> u.read_aux_adc(0, 0)
112
>>>
Eric