discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: How do you write to a widget from a Python file in an OOT?


From: Paul Atreides
Subject: Re: How do you write to a widget from a Python file in an OOT?
Date: Sat, 23 Oct 2021 21:13:00 -0400

XMLRPC is your friend for this. The Python syntax is simple and it can be added to any flowgraph by placing the xmlrpc server block in the flowgraph you want to trigger and the xmlrpc client block can be used in a separate “controller flowgraph” to test the mechanism. Then you can use the generated Python as an example to help you if you want to write a Python program external to GNURadio. 

<end transmission>

On Oct 23, 2021, at 21:02, Elmore's <wa4ywm@comcast.net> wrote:


I had asked this question earlier in a different form but did not receive a response so I am trying a different approach using a greatly simplified flowgraph to illustrate my point.
 
I have attached the three pertinent files.
 
Test is an OOT module. I want to be able to trigger a callback set_IGain (which works) and write a value to the I_Gain GUI Entry (which doesn’t work). I have tried various imports, setting of variables and any other scheme that I could think of. I have not included any specific piece of code in the callback.
 
This seems like such a simple thing to do but nothing works. I get various errors or nothing is written when I eliminate the errors. I must be missing a basic point.
 
Please help me get over this hump.
 
Jim

Virus-free. www.avg.com
<test.py>
<test_sr.grc.png>
<test_sr_test.xml>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]