Wednesday, June 19, 2024

Re: Can Embedded Python Blocks have callbacks?

Hello,

Can you post the rest of the code and a snapshot of your project in gnuradio?  Because with only your function, it's hard to say what happens in your python block :)

Best Regards

M. Croizer


Le mer. 19 juin 2024 à 14:52, Jameson Collins <jameson.collins@gmail.com> a écrit :
I'm trying to use a callback to set a variable in an embedded python block.  Using the tutorial (https://wiki.gnuradio.org/index.php/Embedded_Python_Block) as an example I added the function below.  I've found that this callback never gets called when I update this value from a GUI.  Should it be?

    def set_example_param(self, example_param):          print("here")



No comments:

Post a Comment