# How to wait in python

**URL:** <https://www.ruby-forum.com/t/how-to-wait-in-python/63269>\
**Category:** GNU Radio\
**Created:** [June 13, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-wait-in-python/63269 "2006-06-13T18:32:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincenzo\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e274bd/32.png) [@Vincenzo\_P](https://www.ruby-forum.com/u/Vincenzo_P)\
**Post date:** [June 13, 2006, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-wait-in-python/63269/1 "2006-06-13T18:32:28Z")

</div>

hi,

I was trying to insert something like pauses between the execution of  
python commands.

the purpose is to give the usrp enough time to change the center  
frequency of the frontend and provide some sampless to process, before  
we move on to next frequency we want to reach.  
the idea is to implement an automatic, fine grained frequency slider.

so I tried the time.sleep(seconds) from the module time.

this is ok as it doesn’t hurt the audio demodulation branch of my flow-  
graph,

but, unfortunately, it pauses (I don’t know why) the refreshing of both  
scopesink and fftsink, which I’m using in my application.

any suggestions?

thanks

vincenzo

---

<div class="post-metadata">

**Author:** ![Vincenzo\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e274bd/32.png) [@Vincenzo\_P](https://www.ruby-forum.com/u/Vincenzo_P)\
**Post date:** [June 14, 2006, 11:32am UTC](https://www.ruby-forum.com/t/how-to-wait-in-python/63269/2 "2006-06-14T11:32:32Z")

</div>

Hey,

how about using a thread to launch the frequency changes and then use  
time.sleep(1) within the thread.

This won’t pause the rest of the application.

Mike  
[http://m0mik.org](http://m0mik.org)
