Re: [Discuss-gnuradio] stop() the flow graph

2014-11-15 Thread Vanush Vaswani
Try putting wait() after stop() to make sure the resources are teared down. On Sat, Nov 15, 2014 at 6:56 PM, Syed Aqeel Raza wrote: > Hi, > > Currently, I am using a single usrp as a transmitter. The program is > changing the transmission frequency with respect to (external) switching > time. In

Re: [Discuss-gnuradio] stop() the flow graph

2014-11-14 Thread Syed Aqeel Raza
Hi, Currently, I am using a single usrp as a transmitter. The program is changing the transmission frequency with respect to (external) switching time. In order to change the frequency in usrp box; I set the following programming conditions. while 1: if ((time!=0) and ((ch1=1) or (ch2==1))):

Re: [Discuss-gnuradio] stop() the flow graph

2014-11-13 Thread Sylvain Munaut
> I can't use sleep() here; because there're other threads as well in the > program which need to be executed as well. Sleep() stop the execution of > program; which is not a solution. No it doesn't. It pauses the execution of the _THREAD_ ... other threads (both those created by gnuradio to actua

Re: [Discuss-gnuradio] stop() the flow graph

2014-11-13 Thread Syed Aqeel Raza
I can't use sleep() here; because there're other threads as well in the program which need to be executed as well. Sleep() stop the execution of program; which is not a solution. Thanks. On Thu, Nov 13, 2014 at 5:53 PM, Syed Aqeel Raza wrote: > Thanks Sylvain for your reply; but if I introduced

Re: [Discuss-gnuradio] stop() the flow graph

2014-11-13 Thread Syed Aqeel Raza
Thanks Sylvain for your reply; but if I introduced sleep(14) then during that time it won't perform the tasks in tb1 as well. On Thu, Nov 13, 2014 at 3:28 PM, Syed Aqeel Raza wrote: > Hi All, > > I am looking for a solution that start() the flow graph for a definite > period of time (in seconds)

Re: [Discuss-gnuradio] stop() the flow graph

2014-11-13 Thread Sylvain Munaut
tb1.start() time.sleep(14) tb1.stop() tb1.wait() ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

[Discuss-gnuradio] stop() the flow graph

2014-11-12 Thread Syed Aqeel Raza
Hi All, I am looking for a solution that start() the flow graph for a definite period of time (in seconds) and after that it stop() it automatically. For example # let suppose initial value of time is 14 seconds; it means that the flowgraph defined in tb1 should need to executed during that time;