Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
<== Date ==> <== Thread ==>

Subject: RE: NDStats plugin shows huge numbers for Eiger detector (areaDetector 3.7)
From: Mark Rivers via Tech-talk <tech-talk@aps.anl.gov>
To: "'Sobhani, Bayan'" <bsobhani@bnl.gov>
Cc: "'tech-talk@aps.anl.gov'" <tech-talk@aps.anl.gov>
Date: Tue, 20 Aug 2019 14:29:03 +0000

Hi Alex,

 

The DataType_RBV in the NDStats plugin is the data type of the NDArray it received.  You cannot change it.

 

The ADEiger driver uses unsigned datatypes, UInt32, UInt16, or UInt8 depending on the frame rate.  The Dectris Eiger software uses 0xFFFFFFFF for bad pixels and pixel gaps in 32-bit mode and 0xFFFF in 16-bitmode.  If we changed these ADEiger to use signed types (Int32, Int16, Int8) then those values would represent -1, but the problem is that the maximum number of positive counts would be limited to half the range.  For example in 16-bit mode the counts would be limited to 32767 (2^15-1) before they wrap around to negative numbers.  I think the detector is actually capable of sending images with counts greater than 32767 in 16-bit mode and greater than 2^31-1 in 32-bit mode.  So we are stuck having the gaps and bad pixels be the largest positive number.

 

Perhaps I am wrong, and the Dectris Eiger firmware never produces images where real counts have the most significant bit set.  Then we could change to signed types.  Does anyone know the answer to that?

 

Mark

 

 

 

From: tech-talk-bounces@aps.anl.gov <tech-talk-bounces@aps.anl.gov> On Behalf Of Sobhani, Bayan via Tech-talk
Sent: Tuesday, August 20, 2019 8:49 AM
To: tech-talk@aps.anl.gov
Subject: NDStats plugin shows huge numbers for Eiger detector (areaDetector 3.7)

 

I have an IOC running for an Eiger detector. The pixels are measured from -1.0 to 0.0. I think at least part of areaDetector recognizes this because when I set the Minimum and Maximum under “Display Controls” on the CSS screens, the picture looks good.

 

However, on the NDStats page, I see the minimum is 0, and the Maximum is 65535. I would expect the minimum to be -1.0, and the maximum to be 0. The Total is also a very large number (16407209312) – it was a much smaller number when I was running an older version of Areadetector (I think 2.7).

 

I thought the problem might be the Datatype – the DataType in the Stats plugin is UInt16. I attempted to change this to Float32 by writing to the Stats1:DataType PV, but it keeps reverting back to UInt16.

 

Any ideas what could be causing the numbers in the Stats1 plugin to be these huge numbers?

 

Alex


Replies:
Re: NDStats plugin shows huge numbers for Eiger detector (areaDetector 3.7) Bruno Martins via Tech-talk
References:
NDStats plugin shows huge numbers for Eiger detector (areaDetector 3.7) Sobhani, Bayan via Tech-talk

Navigate by Date:
Prev: NDStats plugin shows huge numbers for Eiger detector (areaDetector 3.7) Sobhani, Bayan via Tech-talk
Next: RE: autosave - different PV to read and write Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
Navigate by Thread:
Prev: NDStats plugin shows huge numbers for Eiger detector (areaDetector 3.7) Sobhani, Bayan via Tech-talk
Next: Re: NDStats plugin shows huge numbers for Eiger detector (areaDetector 3.7) Bruno Martins via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020 
ANJ, 20 Aug 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·