How to wait in python

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

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