Thank you for your reply.
No it happens only when I kill the script. let me give you another example. I have a flowgraph in GRC that looks like this:
I connect the B210 to the macmini via USB3 and press the "execute the flow graph" button. The script is executed ok.
I stop it using the "Kill the flowgraph" button and run it again. I get the follwoing message on the GRC console:
------------------------------------------------FIRST EXECUTION------------------------------------------------
Mac OS; Clang version 6.0 (clang-600.0.54); Boost_105600; UHD_003.007.003-0-unknown
-- Operating over USB 3.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 32.000000 MHz
-- Actually got clock rate 32.000000 MHz
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
>>> Done
------------------------------------------------SECOND EXECUTION------------------------------------------------
Generating: "/Users/kampianakis/Desktop/top_block.py"
Executing: "/Users/kampianakis/Desktop/top_block.py"
Mac OS; Clang version 6.0 (clang-600.0.54); Boost_105600; UHD_003.007.003-0-unknown
-- Operating over USB 3.
Traceback (most recent call last):
File "/Users/kampianakis/Desktop/top_block.py", line 78, in <module>
tb = top_block()
File "/Users/kampianakis/Desktop/top_block.py", line 35, in __init__
channels=range(1),
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/uhd/__init__.py", line 122, in constructor_interceptor
return old_constructor(*args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/uhd/uhd_swig.py", line 1753, in make
return _uhd_swig.usrp_source_make(*args)
RuntimeError: RuntimeError: usb rx8 submit failed: LIBUSB_ERROR_PIPE
After this point the only thing that I can do is remove and re-insert the USB from the computer in order for my script to work. I assume this is not normal behavior (and also not a programming error) because this is a minimum working example, and its not working.