Thank You. os.system() worked. I can now switch between different scripts while in transmitting mode.
To all, While receiving data (using a modification of benchmark_rx.py) I need to receive at a different frequency depending on some control information .
I get an error message while attempting to do this using os.system().It says
cannot connect to usb interface, cannot connect to usrp1. I tried the following and it doesn't work
1.I tried using flowgraph.disconnect and flowgraph.close() before calling the second script.
2.I tried calling os.system() after exiting rx_callback and main() but it still can't connect to the source. 3.I also tried changing frequency instead of calling a separate script inside rx_callback()
How can I ensure that the receive path is completely disconnected and usrp_source is available?