Run a python script interactively from GNU Radio

2024-07-03 Thread Elmore Family
I have an application which I can run successfully as a standalone Python script called from the terminal. When executed, this script is in a while loop. I would like to execute the script from GNU Radio and interact with it. I have a toggle button which when pressed calls the script. Once the s

Run a python script interactively from GNU Radio

2024-07-03 Thread Steve Hageman
Hello Elmore - The normal route to control variables in a running GNU Radio script is via the XMLRPC Server. It is usually run like this, * Start GNU Radio (which includes a XMLRPC server block) * Start the standalone Python script that connects to the XMLRPC Server opened in the GNU

RE: [EXTERNAL] Run a python script interactively from GNU Radio

2024-07-03 Thread Jim Melton
Jim, This really has little to do with GNU Radio and more to do with Python/GUI concurrency. As a general rule, a GUI should never perform a “blocking” operation. Since your application has its own “event loop”, it is fatal to pass control to it from another event loop. Rather than calling yo