[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Muliple top_block()
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Muliple top_block() |
Date: |
Mon, 20 Jun 2011 13:04:53 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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
pgp__h5lLnc7l.pgp
Description: PGP signature