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 > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
