Hello,
Taking the opportunity given by Steffen Kiel's question, I would like to know if it is possible to increase the number of inputs and outputs of a Python block by means of Python variables.
Best regards,
Artur Nogueira
Enviado do Email para Windows 10
De: Müller, Marcus (CEL)
Enviado:quarta-feira, 25 de março de 2020 12:07
Para: SteffenKiel@outlook.dk; discuss-gnuradio@gnu.org
Assunto: Re: Change Variable value from an python block or module?
Yes, but no!
So, GRC Variables are really a GRC concept, and you'd need to break
multiple layers of encapsulation from within a Python block just to
alter them. Really, that's possible with a simple callback function,
but please don't.
Instead, the appropriate way of dealing with this would be giving the
signal source a message port, on which it accepts new values via
message.
Then, from your Python or C++ block, just send a message.
Best regards,
Marcus
On Wed, 2020-03-25 at 14:57 +0000, Steffen Kiel wrote:
> Hello!
>
> I have a signal source whose frequency input is referenced to a variable.
> Is it possible to access this variables value and set it from a python block or python module?
>
> BR,
> Steffen
No comments:
Post a Comment