[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Callback function on OOT Python blocks
From: |
Marcus Müller |
Subject: |
Re: Callback function on OOT Python blocks |
Date: |
Fri, 8 May 2020 16:50:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
Hi Jose,
adding a callback to your GRC block definition makes GRC call that
function whenever that GRC variable is changed.
Comment: the fact that this is XML means you're working on GNU Radio
3.7.*, which is not our current release (3.8.1.0), so if you're
developing something new, you might want to update your GNU Radio.
Best regards, and happy hacking
Marcus
PS: you don't have to add [discuss-gnuradio] to your subject line :)
On 07.05.20 07:41, Jose Ruvalcaba wrote:
> Hello,
>
> I am trying to setup a callback function on an python OOT Block I made
> with GNU radio 3.7. I am trying to do this so I can manually change the
> value of my parameter using a slider.
>
> In the XML file of my OOT block I have added a statement that looks like
> this: <callback>set_variable_name($variable_name) </callback>
> However, I was wondering, Do I need to add any other "callback" commands
> to my python file? Or is this callback line in the XML file enough in
> order to have variables change in my python OOT Block. Any tips would be
> appreciate.
>
>
> Thank you,
>
> Jose Ruvalcaba