Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable timeout for reading parameters #913

Open
NichtJens opened this issue Mar 21, 2024 · 1 comment
Open

Configurable timeout for reading parameters #913

NichtJens opened this issue Mar 21, 2024 · 1 comment
Labels
action - Enhancement New feature or request priority - Unclassified Priority not classified as yet status - Pending Task not yet started

Comments

@NichtJens
Copy link

In a simple example like:

d = slsdet.Jungfrau(17)
d.tempvalues

There seems to be a timeout of about 2 minutes in case JF17 isn't running/connecting, upon which I get

RuntimeError: ClientSocket: Cannot connect to Detector:jf8MA-00 on port 1953

It would be great if this timeout could be made configurable.

@NichtJens NichtJens added action - Enhancement New feature or request priority - Unclassified Priority not classified as yet status - Pending Task not yet started labels Mar 21, 2024
@NichtJens
Copy link
Author

For future reference (mostly my own, in case I need to take that route ;-) ), @erikfrojdh suggested

for host in d.hostname:
   #ping the host (os.system or similar)

for checking if the readout can work by checking if the detector is reachable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action - Enhancement New feature or request priority - Unclassified Priority not classified as yet status - Pending Task not yet started
Projects
None yet
Development

No branches or pull requests

1 participant