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 <s.aqeelr...@gmail.com> wrote: > 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; and when > the time reaches zero it must be stop. > > while 1: > if (time!=0): > tb1.run() > time = int(time) - int(1) > elif (time==0): > tb1.stop() > > > I tried this; but once the flow graph started; then it never comes to the > elif condition. How can I stop() the flowgraph in this condition. Waiting > for reply. > > Regards, > > > >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio