Hi Hinko,
> OK. I guess we can expect this change to appear in 2.5, 2.6 release?
Yes, it will be in the next release.
> Would you accept a patch that would allow changing read mode?
Yes, I'd be happy to accept a patch to support changing the read mode. I would like the patch to include:
- Updated RELEASE.md file
- Updated andorDoc.html
- Updated medm screens with widgets for the new PVs. Other OPI screens are autoconverted from the medm screens. If you cannot run medm then please send a screen shot of your OPI screen so I can reproduce it in medm.
Thanks,
Mark
-----Original Message-----
From: Hinxx [mailto:[email protected]]
Sent: Tuesday, July 12, 2016 8:40 AM
To: Mark Rivers; [email protected]
Subject: Re: AndorCCD binning
Hi Mark,
OK. I guess we can expect this change to appear in 2.5, 2.6 release?
We will probably use patched 2.4 until then.
On a related note - Andor SDK has something called SetReadMode() to
setup for different readout modes: Image, Full Vertical Binning, single
track and multi track. Currently andorCCD only works with Image mode.
Would you accept a patch that would allow changing read mode?
Thanks,
Hinko
On 07/12/2016 02:56 PM, Mark Rivers wrote:
> Hi Hinko,
>
> Your change looks correct to me, I don't know where the factor of 2 was coming from. I added that code back in January 2012, but I probably only tested with small values of binning (e.g. 1, 2, 3, 4). I will make the change and test on our Andor iDus 401 camera.
>
> Mark
>
> ________________________________________
> From: [email protected] [[email protected]] on behalf of Hinxx [[email protected]]
> Sent: Tuesday, July 12, 2016 2:52 AM
> To: [email protected]
> Subject: AndorCCD binning
>
> Hi Mark,
>
> Binning handling in AD andorCCD support does not allow to produce full
> vertical binning (width x 1 image). Looking at the code I noticed that
> some magic with trying to figure out the minY might be the problem. Also
> when trying to come up with the binY values Andor SDK rejects some valid
> binning values because other parameters to SetImage() are invalid.
>
> unsigned int WINAPI SetImage(int hbin, int vbin, int hstart, int hend,
> int vstart, int vend)
>
> For example Andor Luca with 1004x1002 detector and binY set to 1002
> yields this call to the SetImage():
>
> SetImage(1,1002,1,1004,-1001,0)
>
> Of course it results in error from Andor SDK (-1001 is not valid minY).
>
> Probably same applies to horizontal binning..
>
>
> After changing some of the lines of the andorCCD.cpp I can successfully
> set binY to 1002 and get 1004 x 1 image:
>
> diff --git a/andorApp/src/andorCCD.cpp b/andorApp/src/andorCCD.cpp
> index ff09114..2ff92e0 100755
> --- a/andorApp/src/andorCCD.cpp
> +++ b/andorApp/src/andorCCD.cpp
> @@ -1060,12 +1060,12 @@
> getIntegerParam(ADSizeY, &sizeY);
> getIntegerParam(ADMaxSizeX, &maxSizeX);
> getIntegerParam(ADMaxSizeY, &maxSizeY);
> - if (minX > (maxSizeX - 2*binX)) {
> - minX = maxSizeX - 2*binX;
> + if (minX > (maxSizeX - binX)) {
> + minX = maxSizeX - binX;
> setIntegerParam(ADMinX, minX);
> }
> - if (minY > (maxSizeY - 2*binY)) {
> - minY = maxSizeY - 2*binY;
> + if (minY > (maxSizeY - binY)) {
> + minY = maxSizeY - binY;
> setIntegerParam(ADMinY, minY);
> }
> if ((minX + sizeX) > maxSizeX) {
>
> The call to SetImage() is now:
>
> SetImage(1,1002,1,1004,1,1002)
>
>
> This change might break other Andor detectors, here at ESS and with CEA
> partner we can test Andor Newton and Andor Luca.
>
>
> Thanks,
> Hinko
>
- Replies:
- Re: AndorCCD binning Hinxx
- References:
- AndorCCD binning Hinxx
- RE: AndorCCD binning Mark Rivers
- Re: AndorCCD binning Hinxx
- Navigate by Date:
- Prev:
EPICS archiver appliance redundancy Phillip Sorensen
- Next:
Re: AndorCCD binning Hinxx
- 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
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: AndorCCD binning Hinxx
- Next:
Re: AndorCCD binning Hinxx
- 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
2019
2020
2021
2022
2023
2024
|