areaDetector / ADEiger

areaDetector driver for the Dectris Eiger detector
https://areadetector.github.io/areaDetector/ADEiger/eiger.html
9 stars 9 forks source link

Setting photon_energy on Eiger2 returns null #41

Open MarkRivers opened 3 years ago

MarkRivers commented 3 years ago

Setting photon_energy on Eiger2 returns null, rather than a list of parameters that have changed. This generates an error, and prevents the driver from reading the new value, and the values of other parameters that changed as a result, such as the thresholds.

Not clear if this problem always occurs, or only when the server is in a specific state.

MarkRivers commented 3 years ago

I tested this issue as follows:

MarkRivers commented 3 years ago

Dectris was able to reproduce this problem.

Thanks to help from Zachary Brown we were able to figure out that the following appears to be the minimal sequence of operations to restart the Eiger DCU while having a "put" to photon_energy correctly return the list of modified parameters.

Using the Eiger Web page interface do the following:

After doing those steps the curl command to set the photon_energy correctly returns the list of modified parameters:

>curl http://164.54.160.41/detector/api/1.8.0/config/photon_energy -d 10000
["element","flatfield","photon_energy","threshold/1/energy","threshold/1/flatfield","threshold/2/energy","threshold/2/flatfield","threshold_energy","wavelength"]

The EPICS IOC also correctly reads back the modified energy thresholds after the photon_energy is set.

Dectris should be fixing this issue in a coming release.