my_top_block().start()
time.sleep(2) # Wait 2 secs (assuming sleep was imported!)
#raw_input ('Press Enter to quit: ')
my_top_block.set_volume(2) # Pump up the volume (by factor 2)
time.sleep(2) # Wait 2 secs (assuming sleep was imported!)
my_top_block().stop()
And here is the error:
Traceback (most recent call last): File "h3.py", line 37, in <module> my_top_block.set_volume(2) # Pump up the volume (by factor 2) TypeError: unbound method set_volume() must be called with my_top_block instance as first argument (got int instance instead)
Thanks for your help in advance,
- Larry Wagner
[Prev in Thread]
Current Thread
[Next in Thread]
[Discuss-gnuradio] reconfigure flow graph, sleep function in main,
larry<=