On Fri, Sep 30, 2005 at 09:34:47AM +0100, Terry Barnaby wrote: > Hi, > > We are looking at using GnuRadio for a data processing project. > The code will be developed in C++. > We have played around with GnuRadio using the Python bindings and > it seems to do the job we require quite well. However, we would > need to use the GnuRadio data processing directly from C++. > There does not seem to be a C++ API that matches the Python API, > for example there does not appear to be a "flow_graph" class > to connect and run a processing stream.
That's correct. It was *much* easier to implement the flow_graph class as well as much of the other code in Python (e.g., policy stuff, hierarchical blocks). This code isn't performance critical, so there's no killer disadvantage to using Python. The big win is that Python allows you to operate at a *much* higher level of abstraction than C++. You can concentrate on the problem at hand instead of trying to figure out how to jam your solution down into C++. > Is there a recommended way to use the GnuRadio library from C++ ? Sorry. Many of the bits and pieces would be usable, but the high level stuff is written in Python. Making GNU Radio run on an embedded system shouldn't be hard. I understand that Python runs under ucLinux, but haven't tried it myself. You ought to be able to pair down the total size by just not installing portions of the python library (that are coded in Python of course) that you don't need. Other strategies that might work if you're deeply committed to C++, are to interface your new C++ code to the python stuff using any of a number of IPC mechanims: sockets, pipes, TCP/IP, shared memory, etc, etc. Python handles all of those nicely. What's your aversion to Python? RAM's cheap, even in an embedded world ;) Eric _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio