Skip to content

Comments

Extra case added when checking the energy threshold#18

Open
huw-dls wants to merge 1 commit intoareaDetector:masterfrom
huw-dls:allow-unset-to-zero-threshold
Open

Extra case added when checking the energy threshold#18
huw-dls wants to merge 1 commit intoareaDetector:masterfrom
huw-dls:allow-unset-to-zero-threshold

Conversation

@huw-dls
Copy link

@huw-dls huw-dls commented Feb 9, 2026

In testing the Lambda-Flex at Diamond, we found that if the energy threshold was not set, we would only ever see single counts in any pixel and often not even one count for a 10s acquisition. (Limited debugging showed that the provided xsp threshold() function always seems to return the first threshold as 1.7e-313.)

This pull request allows a very small "unset" threshold to be changed to 0keV. At least in our case (with our Lambda-Flex) this avoids acquisitions appearing not to work from EPICS when the user thinks they have set a 0keV threshold on startup.

… a Lambda-Flex, a very

small number for the energy threshold was consistently seen, around 1e-300keV. The comparison
between the new and previous thresholds would then not allow 0keV to be set. This very small
unset detector threshold led to long acquisitions only containing the odd single count in any
pixel, possibly similar in behaviour to the threshold being very high (>40keV).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant