discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Running Flowgraph some a certain period of time


From: Ruecan
Subject: [Discuss-gnuradio] Running Flowgraph some a certain period of time
Date: Wed, 12 Mar 2014 14:52:36 -0700 (PDT)

Hello GR,

* Is there a way how to run my flowgraph for a given number of
minutes/seconds then stop it.

* I'd like to know too how to reconfigure my flowgraph (after I stop it from
runtime) and resume its run after I changed for example the signal source at
the begin of the flowgraph.

I tried:

My_flowgraph Description

def MyRoutine(args):
         global tb
         .
          if (condition):
                 tb.stop()
                 myModifiedflowgraph.myModifiedflowgraph(args)
         .        
         .
         .####.

if __name__ == '__main__':
         global tb
          .
          .
         threading.Timer(10,myRoutine).start()
         tb.Run(True)

My point here is that I need to run myModifiedflowgraph for a certain period
of time then stop it and resume tb. FYI myModifiedflowgraph is the name of
the other py script which contain the modifiedflowgraph called also
myModifiedflowgraph. 
Any hints or explanations are well appreciated

Regards,
Ruecan



--
View this message in context: 
http://gnuradio.4.n7.nabble.com/Running-Flowgraph-some-a-certain-period-of-time-tp46919.html
Sent from the GnuRadio mailing list archive at Nabble.com.



reply via email to

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