[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] strange inheritance in gnuradio.. or something wr
Re: [Discuss-gnuradio] strange inheritance in gnuradio.. or something wrong with SWIG..
Sun, 13 Sep 2009 11:29:01 -0700
On Fri, Sep 11, 2009 at 02:14:16AM -0700, tom_unaff wrote:
> I don't understand one think.. Class usrp_sink_c inherit from usrp_base a
> public method read_aux_adc(int,int).
> int usrp_base::read_aux_adc (int which_dboard, int which_adc)
> return d_usrp_basic->read_aux_adc (which_dboard, which_adc);}
> 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.
> self.u = usrp_options.create_usrp_sink(options)
> dac_rate = self.u.dac_rate()
> rssi = self.u.read_aux_adc(0,0)
> But it doesn't work.
> Can someone explain me what strange things are happening here?
> Thanks in advance,
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.read_aux_adc(0, 0)