[Discuss-gnuradio] reconfigure flow graph with scope app
From:
Larry Wagner
Subject:
[Discuss-gnuradio] reconfigure flow graph with scope app
Date:
Sun, 25 Jan 2009 23:34:34 -0800
Hi -
I have a USRP with 2 RFX2400 daughter cards and need to calibrate the
local oscillator (LO) offset between them. To do this I want to modify
the multi_scope.py example to allow me to reconfigure the flow graph
without stopping. This is based on some external measurement I will do
followed by a keypress and possibly an input using raw_input().
app = my_top_block()
app.start()
raw_input ('Press Enter to change volume: ')
app.set_volume(2) # Pump up the volume (by factor
2)
raw_input ('Press Enter to stop: ')
app.stop()
#### end of simple code ###
I need help because the statements in the multi_scope.py script are more
complicated. They are:
def main ():
app = stdgui2.stdapp(my_top_block, "Multi
Scope", nstatus=1)
app.MainLoop()
if __name__ == '__main__':
main ()
How can I run the scope app with a keypress and possibly an input using
raw_input()?