FIX: handling KeyboardInterrupt: lower level closes the socket automa…#33
FIX: handling KeyboardInterrupt: lower level closes the socket automa…#33raczben wants to merge 1 commit intopython-ivi:masterfrom
Conversation
|
The link needs to be properly closed, you can't just close the socket. There are a number of instruments (namely Tektronix scopes) that don't implement VXI-11 correctly and don't actually release the link resources when the socket is closed. After a few rounds of this, the instrument needs to be rebooted before new VXI-11 connections can be made. |
|
I use TEK MSO 3054, with WIN-7.
I got the same situation. The TEK scopes can handle 16 connection. If I have 16 disclosed connection, I have to reboot the scope. (No other reset can help this issue.) BUT If a What's more! Using my fix I don't have to reboot the scope, if I press |
If a KeyboardInterrupt was raised during the raw read and write operation the link is set to None, because lower layers handle and closes the connection.