discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] UHD Python API?


From: Nowlan, Sean
Subject: Re: [Discuss-gnuradio] UHD Python API?
Date: Fri, 14 Oct 2011 22:04:52 +0000

Can I use the following to get a pointer to the object instance and then access 
the C++ public get/set methods? Or does SWIG not dig that deep?

virtual uhd::usrp::dboard_iface::sptr get_dboard_iface(size_t chan = 0) = 0;
virtual uhd::usrp::multi_usrp::sptr get_device(void) = 0;

Sean

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Nowlan, Sean
Sent: Friday, October 14, 2011 6:01 PM
To: address@hidden; address@hidden
Subject: Re: [Discuss-gnuradio] UHD Python API?

Thanks for your response. I've done that, but if want to do something fancier 
like printing out daughterboard ID and device address, can I use "swigged" C++ 
calls?

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Josh Blum
Sent: Friday, October 14, 2011 5:56 PM
To: address@hidden
Subject: Re: [Discuss-gnuradio] UHD Python API?



On 10/14/2011 02:53 PM, Nowlan, Sean wrote:
> I'm not clear on this... if it's in the UHD C++ API, does that 
> automatically mean it's available in the Python API through SWIG? The
> C++ API is fairly well documented but I haven't found a good Python
> API reference.
> 

The API for the gr-uhd source and sink blocks is "swigged" into python.
Any calls you see in the source and sink header files will also be available in 
python. You may want to start by generating some flow graphs in grc and looking 
at the generated python code.

-josh

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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