Wednesday, July 3, 2024

Re: Run a python script interactively from GNU Radio

XMLRPC or ZMQ can be used for sending messages and commands to/from a flowgraph and to/from external applications. GNURadio has client and server blocks for XMLRPC as well as a suite of ZMQ message blocks that might fit your application. I suggest looking at these references. 




<end transmission>

On Jul 3, 2024, at 12:06, Elmore Family <wa4ywm@comcast.net> wrote:


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 script begins execution I no longer have control from GNU Radio – the window does not respond. I realize this is because the script is in a while loop without any way to exit it (another issue).
 
Is there some way to run this script and still have a functioning GNU Radio? I would like to be able to exit the script, enter a value to be used by the script, set other parameters, etc. Is this possible or am I attempting to do something which is not within GNU Radio's purview?
 
This is a fairly complex project I have been working on for some time but this is the first time I tried something like this. I don't want to have to build all the OOTs that would be required to run this entirely in GNU Radio. It was difficult enough to develop a successfully executing script.
 
Jim

Virus-free.www.avg.com

No comments:

Post a Comment