Re: [Discuss-gnuradio] How to create a python block

2016-03-19 Thread Dennis Glatting
On Thu, 2016-03-17 at 11:41 -0700, Martin Braun wrote: > Current GRC on master allows you to type Python code directly into > the > flow graph to be executed as a block. Simply insert a 'Python block'. > This is a great help. Thank you. > M > > On 03/16/2016 02:34 PM, Dennis Glatting wrote:

[Discuss-gnuradio] How to create a python block

2016-03-19 Thread Dennis Glatting
This is probably a dumb question but someone has to ask them... I have a run graph with c++ blocks: a receiver block, a transmitter block, and a manipulator block. I want to have the manipulator block editable from the run graph where the user can insert python code. Specifically: 1) The block h

Re: [Discuss-gnuradio] How to create a python block

2016-03-19 Thread Dennis Glatting
On Wed, 2016-03-16 at 16:58 -0400, James Humphries wrote: > Hi Dennis, > > Have you seen these: > > https://gnuradio.org/doc/doxygen/page_python_blocks.html > > and > > http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GN > U_Radio_in_Python > > They have some good info on how

Re: [Discuss-gnuradio] How to create a python block

2016-03-19 Thread Martin Braun
Current GRC on master allows you to type Python code directly into the flow graph to be executed as a block. Simply insert a 'Python block'. M On 03/16/2016 02:34 PM, Dennis Glatting wrote: > On Wed, 2016-03-16 at 16:58 -0400, James Humphries wrote: >> Hi Dennis, >> >> Have you seen these: >> >>

Re: [Discuss-gnuradio] How to create a python block

2016-03-19 Thread Chris Kuethe
Here's one example of a block implemented in python https://github.com/drmpeg/gr-paint/pull/4/commits/6f3356c9816402961e75082f0ab9aa5b5b0eb338 Perhaps you want something like Tim O'Shea's lambda blocks? https://oshearesearch.com/2015/05/23/gnu-radio-message-lambda-blocks/ Balint does strange any

Re: [Discuss-gnuradio] How to create a python block

2016-03-19 Thread Martin Braun
GNU Radio supports Python blocks out-of-the-box. You can use gr_modtool to create them, if you like. Also check out our qa codes for some examples (including message based blocks). Cheers, M On 03/16/2016 01:51 PM, Dennis Glatting wrote: > This is probably a dumb question but someone has to ask t

Re: [Discuss-gnuradio] How to create a python block

2016-03-19 Thread James Humphries
Hi Dennis, Have you seen these: https://gnuradio.org/doc/doxygen/page_python_blocks.html and http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python They have some good info on how to setup your Python block. -Trip On Wed, Mar 16, 2016 at 4:51 PM, Dennis Glatti