discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Python function processing block


From: Marcus Leech
Subject: Re: [Discuss-gnuradio] Python function processing block
Date: Tue, 03 Oct 2006 11:40:14 -0400
User-agent: Thunderbird 1.5.0.7 (X11/20060909)

Eric Blossom wrote:

http://gnuradio.org/trac/browser/gnuradio/trunk/gnuradio-core/src/lib/general/gr_feval.h

It defines a function 'eval' that can be called either from C++ or from
Python.  In Python you can subclass this and override the eval function
with whatever you want.  When the function is called from C++, control
flow passes to the Python interpreter to evaluate the function and return.

I haven't used it myself, but you can get a good feel for what is
possible by looking at the QA code for the block at:

http://gnuradio.org/trac/browser/gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_feval.py

Johnathan Corgan, AE6HO
address@hidden
Ok, so gr_feval_ff() appears in the C++ code, but doesn't appear to have an interface generated in the SWIG stuff--
 whazzup with that?





reply via email to

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