I am studying on making automatic transmitter and receiver with usrp on gnuradio. Firstly, I should transmit any signal with center frequency 400,410,420,430 Mhz with 2 seconds waiting time for each frequency and it should repeat itself. Then, at the receiver side I should find the frequency changing loop and the waiting time to get the signal coming from transmitter. I am working on python code that gnuradio generates and I added for and while loop. Yet, there is nothing worthy. I'm an amateur and working just for 2 weeks.I hope someone can help me to solve the problem. By the way, I check the Guided Tutorials on http://tutorials.gnuradio.org and could not find something useful about outomatic change. Thanks, Furkan.
***EDITED PART***
what I exactly want to do is making transmitter which transmits 400,410,420,430 Mhz signals repetetive with 1 second waiting time for each signal. For receiver part, it will know frequency range and how many second each frequency will transmitted, but it will not start at the same time with the transmitter. So, it should find the center frequency of transmitter first,then continue synchronized to the transmitter. the added code for transmitter is below but it does repeat from 400 to 430,it goes up.
tb.show()
def tick():
for i in range(0,4):
tb.set_center_freq(tb.get_center_freq()+10e6)
print(tb.get_center_freq())
timer = QTimer()
timer.timeout.connect(tick)
timer.start(1000)
def quitting():
I hope it is clear now. Thanks for all comments and helps.