discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] strange inheritance in gnuradio.. or something wrong


From: tom_unaff
Subject: [Discuss-gnuradio] strange inheritance in gnuradio.. or something wrong with SWIG..
Date: Fri, 11 Sep 2009 02:14:16 -0700 (PDT)

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
-- 
View this message in context: 
http://www.nabble.com/strange-inheritance-in-gnuradio..-or-something-wrong-with-SWIG..-tp25393083p25393083.html
Sent from the GnuRadio mailing list archive at Nabble.com.





reply via email to

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