discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Setting USRP's AGC Through GNU Radio's USRP Sourc


From: Martin Braun
Subject: Re: [Discuss-gnuradio] Setting USRP's AGC Through GNU Radio's USRP Source
Date: Tue, 17 Oct 2017 16:01:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 10/17/2017 01:16 AM, Gilad Beeri (ApolloShield) wrote:
> Hi,
> I'm not sure whether this question should be posted in this mailing list
> or in usrp-users.
> 
> The USRP Source has a method called get_device() which returns an
> internal pointer to the multi_usrp. The internal USRP object has a
> method of set_rx_agc().
> 
> How can I access it through Python?
> Assuming src is a USRP Source block,
> src.get_device() returns: <Swig Object of type
> '::uhd::usrp::multi_usrp::sptr *' at 0x7f250bf30300>

You cannot. We don't SWIG the multi_usrp object.

> 
> but then the returned object (dev) has no interesting functions
> (only 'acquire', 'append', 'disown', 'next', 'own').
> 
> Is there a way to control the USRP B2xx's AGC (AD936x's AGC) through
> Python? If not, what should I change in the source code to make it happen?

You can extend usrp_source and usrp_sink to include AGC-controlling
methods. Mostly, they're simple forwards to the underlying multi_usrp call.

Cheers,
Martin



reply via email to

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