discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Adding functionality to a GRC-generated flowgraph


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)

Not entirely sure what you talking about, but you can add a custom block wrapper for basically anything. It doesnt have to be a real gr block. Make a custom block wrapper without any inputs or outputs, and put your special code in the <make>blah</make> that instantiates your object.

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.





reply via email to

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