discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Using GRC generated python code inside a C++ code


From: Koslowski, Sebastian (CEL)
Subject: Re: [Discuss-gnuradio] Using GRC generated python code inside a C++ code
Date: Fri, 19 Aug 2016 13:15:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Well, there a number of options. Given your description its hard to say which one is best.
Aside from maintainability and flexibility of the system, it really depends on the required interaction between the components.
You could
    - re-implement the fg in C++.
    - create Python bindings for your C++ client (e.g. with swig) and do the integration/coupling in Python (outside of the fg)
    - embed Python in your C++ client (https://docs.python.org/2/extending/embedding.html)
    - simply run the Python interpreter as a sub-process if the C++ client

If you choose 2, 3 or anything not the list let me know how it worked out =)

Sebastian


On 08/19/2016 10:02 AM, Pranav Padalkar wrote:

Hello,


I have a GRC generated python code. I also wrote a server-client code in C++. I want to implement the client-code along with the GNU python code. The essence is that I want to a run a client C++ code, which will call the python code in a thread and start the USRP to receive/transmit data, and continue performing it's own process in another thread. I am not sure how I could go about this. I also considered implementing the client C++ code as module in GNU radio and use it in the flow graph. But I think that's not how a client background code should run.


Any thoughts on this matter would be helpful. Thanks in advance.


Best Regards,

Pranav Padalkar
Fraunhofer-Institut für Eingebettete Systeme und Kommunikationstechnik ESK
 
Hansastraße 32 | 80686 München
Telefon, Fax: +49 89 547088-0 | +49 89 547088-220
Internet:


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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