Hi,
You should be able to modify the code in the Python Block template to be
a basic_block rather than the default sync_block just by changing the
class inheritance. The GNU Radio Extras block is over five years old and
the documentation from it is probably unhelpful.
If you need for info it would be very helpful to understand why you need
a basic block and what you're trying to do with it.
Cheers,
Derek
On 12/08/2020 19:01, lannan jiang wrote:
Hi Derek,
Thank you for your info.
I am aware of that the python block is included, but there are four
types of blocks as far as I am concerned (interp, decim, synchronous,
and basic blocks shown in
https://wiki.gnuradio.org/index.php/Types_of_Blocks
<https://wiki.gnuradio.org/index.php/Types_of_Blocks>).
I want to use the basic block and so i need to import GNURadio
extras module, but I ran into the error message that no such module
exists. Is this module also included by default?
Regards,
Lannan Jiang
------------------------------------------------------------------------
*From:* Derek Kozel <de...@bitstovolts.com>
*Sent:* Wednesday, August 12, 2020 1:54 PM
*To:* lannan jiang <jln...@live.com>; discuss-gnuradio@gnu.org
<discuss-gnuradio@gnu.org>
*Subject:* Re: Gnuradio Extras
Hi Lannan Jiang,
The Python Block is included by default now in GNU Radio. Here is a
tutorial showing it's use.
https://wiki.gnuradio.org/index.php/Embedded_Python_Block
Regards,
Derek
On 12/08/2020 18:33, lannan jiang wrote:
> Hi everyone,
> I want to use an embedded python block in my flow graph, in
> particular the basic block.
> I found that on this page
> https://github.com/guruofquality/grextras/wiki#id1, it states that
> this branch will not be compatible for GNUradio 3.7 API. So,
> is it possible to use it in GNURadio 3.8? If so, how can I install it
> as i found the installation guide not very explicit.
>
> Thanks in advance,
> Lannan Jiang
>