[Top][All Lists]

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

Re: [Discuss-gnuradio] python Hier block using callback

From: Marcus Müller
Subject: Re: [Discuss-gnuradio] python Hier block using callback
Date: Mon, 27 Apr 2015 14:21:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Hi Themba,

the interesting point here is where you register your callback. You say
you've included the callback in the .grc file; if that's the case, you
should find it searching for the name of the variable you change using a
slider etc in the python file GRC generates.


On 04/27/2015 10:02 AM, fanatic wrote:
> Thank you Marcus for the reply.
> let me show you an example of what I did. but so far i am not getting any
> output from it
>     def set_parameters(self,amplitude):
>               global d_amplitude
>                  d_amplitude= amplitude
>                  print d_amplitude
> #then  on the contructor
>  def_init_(self, amplitude)
>            self.set_parameter(amplitude)
>            analog_sig_source = analog.sig_source_f(sampling_rate,
> analog.GR_TRI_WAVE, f, d_amplitude, 0)
>  #then connect the block to other blocks
> --
> View this message in context: 
> http://gnuradio.4.n7.nabble.com/python-Hier-block-using-callback-tp53486p53489.html
> Sent from the GnuRadio mailing list archive at Nabble.com.
> _______________________________________________
> 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]