-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
Hello,
I have successfully used the python-vxi11 on a rigol MSO1104z over TCP.
See
https://github.com/x8-999-github/cw-projects-experiments/blob/master/visa/Scope_arm_and_capture.ipynb and
https://github.com/x8-999-github/cw-projects-experiments/blob/master/visa/VXI_MSO1104z.ipynb
The main problem was a timeout I was getting when connecting.
Is it possible to make the socket timeout configurable(I hardcoed it here)?
#diff --git a/vxi11/rpc.py b/vxi11/rpc.py
#index 9d889a6..c744f8c 100644
#--- a/vxi11/rpc.py
#+++ b/vxi11/rpc.py
#@@ -257,6 +257,7 @@ class RawTCPClient(Client):
#
# def connect(self):
# self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#+ self.sock.settimeout(2.0)
# self.sock.connect((self.host, self.port))
#
# def close(self):
semiversus and emeryao
Metadata
Metadata
Assignees
Labels
No labels