[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: tom_unaff
Subject: Re: [Discuss-gnuradio] strange inheritance in gnuradio.. or something wrong with SWIG..
Date: Mon, 14 Sep 2009 14:35:10 -0700 (PDT)

Eric, I am also able to run this 2 lines of code.. but problem occures when
this object is created in one of the benchmark examples (tx or rx).

Those benchmarks also create usrp objects.
The error I get when second time such object is created is following:  

usrp_open_interface:usb_claim_interface: failed interface 1
could not claim interface 1: Device or resource busy
usrp_basic_tx: can't open tx interface

Although I got RSSI value, the whole TX or RX path fails..

I see solution for this in C++..

I have already tried to display RSSI in C++ and it is working with
benchmark. But now I want to call function defined in C++ from python.

I find wired thing.. I add function definition in usrp_sink_c.cc and
declarations in usrp_sink_c.h & usrp_sink_c.i

I compiled and installed this and python doesn't recognize my function.

Next I define the same function (with different singature) for class
usrp_sink_base. Did not work as well. 
Finally, I definie same function in files: usrp_base.cc  (and declarations
in usrp_base.i usrp_base.h) 
And this time I could call function from python:


Please note that inheritance goes like that:  usrp_base <- usrp_sink_base <-
(from http://gnuradio.org/doc/doxygen/classusrp__sink__c.html )

Why in python(SWIG interface) I don't get any methods from classes which are
inherited from usrp_base?

View this message in context: 
Sent from the GnuRadio mailing list archive at Nabble.com.

reply via email to

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