|
From: | Pranav Padalkar |
Subject: | Re: [Discuss-gnuradio] Using GRC generated python code inside a C++ code |
Date: | Fri, 19 Aug 2016 12:07:58 +0000 |
Hi Sebastian,
Thanks for your reply. In the meanwhile I was going through some documents on embedding Python in C++. I liked the idea of having a python code embedded in my client c++ code. But I think access data variables from the gnuradio code (for eg centre freq, bw, gain, etc) will be difficult. Because I want to set them from my client c++ code. I am still searching for other options, but so far python embedding seems good. Will let you know how it works.
If others have any other options, please let me know.
Thanks! Pranav
From: Koslowski, Sebastian (CEL) <address@hidden>
Sent: Friday, August 19, 2016 1:15 PM To: Pranav Padalkar; address@hidden Subject: Re: [Discuss-gnuradio] Using GRC generated python code inside a C++ code 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:
|
[Prev in Thread] | Current Thread | [Next in Thread] |