discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] New python block gr_modtool - When no inputs/outp


From: Martin Braun
Subject: Re: [Discuss-gnuradio] New python block gr_modtool - When no inputs/outputs, which parent should I use?
Date: Tue, 24 Feb 2015 16:41:11 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/24/2015 10:36 AM, Jorge Gallo wrote:
> Hello,
> 
> I tried to implement a python block which generates tuning commands
> every 5 seconds.
>      Python block: 0 inputs, 0 outputs, 1 out_msg port which must be
> declared in the constructor.
> 
> I used gr_modtool. I got some trouble that I think can be easily solved.
> 
> [...]
> My trouble comes where the "SOMETHING" is:
> 
> SOMETHING_1: gr.sync_block, gr.basic_block, gr.noblock ¿?
> When using gr_mod tool, which kind of block must specify? If I use sync
> or basic it complaints there are missing input/outputs. On the other
> hand if I write noblock there is no message_port_register_out method
> available.
> How can I solve that?

Maybe a hier block is the right choice. modtool can do those, so follow
its lead as closely as possible. It will have zero in- and outputs, but
registers message ports.

See qa_hier_block2_message_connections.py for an example.

Cheers,
Martin

> SOMETHING_2: Depends which kind of block is the parent. Since there is
> no input/output it must be empty (self). Correct?
> 
> Many thanks,
> Jorge
> 
> 
> _______________________________________________
> 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]