discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Python Block to selectively pass signals


From: Barry Duggan
Subject: Re: Python Block to selectively pass signals
Date: Sat, 04 Jan 2020 13:15:26 -0500
User-agent: Roundcube Webmail/1.3.8

Hi Sri,

I think you need `class blk(gr.basic_block):`

Take a look at https://wiki.gnuradio.org/index.php/Embedded_Python_Block

--
Barry Duggan KV4FV

On Fri, 3 Jan 2020 18:38:04 +0530, Sri Pramodh Rachuri wrote:

Hi,
I am trying to make a python block that drops the frames that don't have the presence of a signal but forwards if there is. I tried using "basic block" but always got the error "Param - Code(_source_code): No python block class found in code". Please check the attachments for the code I wrote.

Please help me find the mistake I am doing.

Thanks!



reply via email to

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