Forum: GNU Radio Developing with C++ but not python

Posted by Gong Zhang (Guest)
on 2013-02-25 14:27
(Received via mailing list)
Hi,
    I think python file means data go downstream without interacting
with other data stream.And I have seen several example writen in c++ and
they all contain a gr_top_block which makes them similar to python
files.Any body have the experience developing in c++?And what you think
is the major difficulity(except more effort) compared to python?
    Thanks.
Posted by Martin Luelf (Guest)
on 2013-02-25 14:51
(Received via mailing list)
> Hi,
>     I think python file means data go downstream without interacting
> with other data stream.And I have seen several example writen in c++ and
> they all contain a gr_top_block which makes them similar to python
> files.Any body have the experience developing in c++?And what you think
> is the major difficulity(except more effort) compared to python?
>     Thanks.


Hi,

I am not completely sure I understood your question, but as far as I can
tell you are concerned about running python next to C++ (I guess for
performance reasons.)

The core GNURadio application, also the top_blocks are C++ code, so all
the data processing and data passing is done in compiled C++ code 
(Unless
you decide to write blocks in python of course).
Python is only used for setup and connection purposes and use
automatically generated wrappers for the C++ code (so you call shared 
C++
libraries from python). See also these two FAQs
http://gnuradio.org/redmine/projects/gnuradio/wiki...

Martin
Posted by Martin Braun (CEL) (Guest)
on 2013-02-25 14:53
(Received via mailing list)
On Mon, Feb 25, 2013 at 09:26:22PM +0800, Gong Zhang wrote:
> Hi,
>    I think python file means data go downstream without interacting
> with other data stream.And I have seen several example writen in c++
> and they all contain a gr_top_block which makes them similar to
> python files.Any body have the experience developing in c++?And what
> you think is the major difficulity(except more effort) compared to
> python?

Yep, that's the major difference. Also, don't forget that there are some
blocks only available in Python.

MB

--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.