Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
This repository was archived by the owner on Feb 2, 2026. It is now read-only.

Please implement a configurable timeout #29

@x8-999-github

Description

@x8-999-github

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions