On Mon, Jun 20, 2011 at 03:34:55PM +0500, smith mark wrote:
> Hi all,
> 
> I wanted to know that whether one can have multiple gr.top_block() or not? 
> 
> for example
> 
> tb1=gr.top_block()
> 
> tb2=gr.top_block()
> 
> tb1.run()  
> 
> tb2.run()
> 
> and have them running at the same time. 

This definitely works:
Create several hier_blocks, each containing a full flow graph (w/ zero
input and output signatures), then put each of these into one top_block.

For an example, see usrp_nbfm_ptt.py.

Cheers,
MB

-- 
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Attachment: pgpatgQhd84Oy.pgp
Description: PGP signature

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to