discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] fg.run() doesn't return if gr.head() is used


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] fg.run() doesn't return if gr.head() is used
Date: Mon, 13 Aug 2007 00:26:23 -0700
User-agent: Mutt/1.5.9i

On Thu, Aug 09, 2007 at 09:32:56PM -0400, Dawei Shen wrote:
> Hey Guys
> 
> I used gr.head() as my source, so I assumed fg.run() should be able to
> return, but it doesn't. Anybody has any idea which could be the reason? Here
> is the error message if I press ctrl+C to stop the program.

It should stop.  However, if you happen to be using gr.udp_source or
anything else that is in the habit of returning a zero count from
work, it won't return. 

Eric

> 
>     mygraph.run()
>   File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/flow_graph.py",
> line 113, in run
>     self.wait ()
>   File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/flow_graph.py",
> line 104, in wait
>     self.scheduler.wait ()
>   File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/scheduler.py",
> line 68, in wait
>     thread.join(timeout)
>   File "/usr/lib/python2.5/threading.py", line 569, in join
>     self.__block.wait(delay)
>   File "/usr/lib/python2.5/threading.py", line 233, in wait
>     _sleep(delay)
> KeyboardInterrupt
> 
> 
> Thanks.
> 
> Dawei




reply via email to

[Prev in Thread] Current Thread [Next in Thread]