Re: [Discuss-gnuradio] Muliple top_block()

2011-06-21 Thread smith mark
Thank you very much all for such clear explanation of things. Actually I want to implement the coded OFDM. And was trying to figure out how can I run the trellis-encoder and OFDM flow graphs together. Your posts did help me a lot :). Smith On Tue, Jun 21, 2011 at 1:45 AM, Johnathan Corgan < jcor.

Re: [Discuss-gnuradio] Muliple top_block()

2011-06-20 Thread Johnathan Corgan
On Mon, Jun 20, 2011 at 11:03, smith mark wrote: > As far as the result is concerned it seems right. But, I want to know that > whether this type of thing is conceptually right or not ?? > It is functionally correct, as you noted, but using GNU Radio this way is not very common except perhaps i

Re: [Discuss-gnuradio] Muliple top_block()

2011-06-20 Thread smith mark
Hi Thanks for the reply. I used tb1.start() and tb2.run() and I think that is working. The two blocks don't have connections with each other. The flow is like: tb1=gr.top_block() 1. tb1.start() 2. Some variable declaration... Repeat step 3 and 4, five times 3. A function that creates tb2 and ru

Re: [Discuss-gnuradio] Muliple top_block()

2011-06-20 Thread Johnathan Corgan
On Mon, Jun 20, 2011 at 03:59, Mike Clark wrote: > try tb1.start() and tb2.start(). That should run them in separate threads. > The start() function kicks off the GNU Radio thread scheduler for a flowgraph top block, but immediately returns to the foreground thread. You'll be able to do other t

Re: [Discuss-gnuradio] Muliple top_block()

2011-06-20 Thread Martin Braun
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

Re: [Discuss-gnuradio] Muliple top_block()

2011-06-20 Thread Mike Clark
try tb1.start() and tb2.start(). That should run them in separate threads. Mike On Mon, Jun 20, 2011 at 6:34 AM, 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(

[Discuss-gnuradio] Muliple top_block()

2011-06-20 Thread smith mark
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. Regards Smith ___ Discuss-gnuradio mailing list Discuss-gnura