EPICS Home

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  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: areaDetector driver pixel types
From: Phil Atkin <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 7 Jan 2016 16:45:09 +0000
Hi,

My camera only generates uint16 pixels, so I have removed the configuration setting and constructor argument.  In the constructor, I set the NDDataType parameter to NDUInt16.

When I debug my code, it seems as though the buffer is being allocated as expected as an unsigned 16-bit buffer and all is well.  However, I then notice to my surprise that the ImageJ viewer plugin is showing "2000x1500 pixels; 8-bit; 2.9MB.  What's more, something is clearly scaling my data from the 16 bits I generate (0..65535) to the 8 bit range of the display (0..255).  Also, I discover that the startup file contains:
dbLoadRecords("NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int8,FTVL=UCHAR,NELEMENTS=12000000")
That looks wrong, so I change it to the alternative given for 16-bit data in the ADExample script I'm working from:
dbLoadRecords("NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int16,FTVL=USHORT,NELEMENTS=12000000")
Now, I find that the ImageJ viewer plugin is showing "2000x1500 pixels; 32-bit; 12MB".  Also, the display is now permanently black.

I'm confused; can anyone explain, please?  Thanks,

Phil



--
Pixel Analytics is a limited company registered in England. Company number: 7747526; Registered office: 93A New Road, Haslingfield, Cambridge CB23 1LP

Replies:
Re: areaDetector driver pixel types Phil Atkin

Navigate by Date:
Prev: 5 counts in 1 hour Southern, Tim
Next: RE: Pro's/Con's of LabVIEW/EPICS Mazanec Tomáš
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: 5 counts in 1 hour Andrew Johnson
Next: Re: areaDetector driver pixel types Phil Atkin
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024