|
From: | Josh Blum |
Subject: | Re: [Discuss-gnuradio] Adding functionality to a GRC-generated flowgraph |
Date: | Sat, 21 Feb 2009 13:18:56 -0800 |
User-agent: | Thunderbird 2.0.0.19 (X11/20090105) |
A good example is the xmlrpc server: http://gnuradio.org/trac/browser/gnuradio/trunk/grc/data/platforms/python/blocks/xmlrpc_server.xml Its not a signal processing block, but it will start an xmlrpc server and a thread inside your flow graph.
If your code is more complicated than that, you can encapsulate anything into a python module, install it into the python path, and instantiate it using the block wrapper <make>.
-josh Marcus D. Leech wrote:
Josh, etc al: What is the best way to "tack on" functionality to a GRC-generated flowgraph--that is, things that are outside of the Gnu Radio "environment" but still important to your application. I'd like to add things like a timeout function that "does things" from time to time, as well as other important tasks, initializations, etc.
[Prev in Thread] | Current Thread | [Next in Thread] |