discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] USING SET/GET_GAIN UHD USRP FUNCTION


From: Martin Braun
Subject: Re: [Discuss-gnuradio] USING SET/GET_GAIN UHD USRP FUNCTION
Date: Thu, 28 Aug 2014 18:54:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 08/28/2014 01:34 PM, Simone Ciccia S210664 wrote:
> hi,
> 
> I have some problem to use USRP UHD set/get_gain functions.
> 
> In my code, _impl.cc I have included:
> 
> #include <gnuradio/uhd/usrp_source.h>
> 
> the header file in which 
> 
> virtual double get_gain() and virtual void set_gain()
> 
> are defined!
> 
> When I try to compile errors appear:
> 
> error: ‘get_gain’ was not declared in this scope
>      DB_gain =(float*) get_gain(0);  

Are you calling this on your own block? Or on the USRP source?

M


> 
> error: ‘set_gain’ was not declared in this scope
>     set_gain(g_z,0);  
> 
> Have I forgot some definitions for these functions?
> 
> Thanks
> Simone
> 
> _______________________________________________
> 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]