EPICS Controls 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  <20172018  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  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Andor Shamrock ShamrockGetCalibration failure
From: Hinko Kocevar <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 12 Dec 2017 15:56:46 +0100
Here it is: https://github.com/areaDetector/ADAndor/pull/14

On Tue, Dec 12, 2017 at 2:43 PM, Mark Rivers <[email protected]> wrote:
>
>> I can make a pull request on Github.
>
> That sounds good, thanks.
>
> ________________________________
> From: [email protected] <[email protected]> on behalf of Hinko Kocevar <[email protected]>
> Sent: Tuesday, December 12, 2017 6:42 AM
> To: [email protected]
> Subject: Andor Shamrock ShamrockGetCalibration failure
>
> Hi,
>
> I'm using latest Andor SDK (2.102.30034.0) with Newton 920 and Shamrock 500i.
> I'm trying to work with Github master branch of ADAndor, ADCore is 3-1.
>
> I get these error massages at IOC startup:
>
> # Comment out the following lines if there is no Shamrock spectrograph
> #shamrockConfig(const char *portName, int shamrockId, const char
> *iniPath, int priority, int stackSize)
> shamrockConfig("SR1", 0, "", 0, 0)
> HK: number of pixels: 0
> HK: pixel width: 0.000000
> 2017/12/12 11:13:55.196 shamrock:getStatus: ERROR calling
> ShamrockGetCalibration Description=PARAMETER 3 INVALID
> dbLoadRecords("/data/shi/R3.15.4/modules/adandor-D1/db/shamrock.template",
>   "P=13ANDOR1:,R=sham1:,PORT=SR1,TIMEOUT=1,PIXELS=1024")
>
>
> In shamrock.cpp, I added printouts for number of pixels and pixel
> width since ShamrockGetCalibration() complains that parameter 3 is
> invalid - 0. Should be 1024.
>
> Looking at example console app from Andor, this is how the number of
> pixels is set up, after camera and spectrograph were detected:
>
> //Get Detector dimensions
> GetDetector(&width, &height);
> //Sets the number of pixels for calibration purposes
> ShamrockSetNumberPixels(0, width);
> float xSize, ySize;
> //Get Detector pixel size
> GetPixelSize(&xSize, &ySize);
> //Set the pixel width in microns for calibration purposes.
> ShamrockSetPixelWidth(0, xSize);
>
> Adding similar lines to shamrock.cpp constructor solves it for me.
>
> I tried with 100.30044.0 and I got the same ShamrockGetCalibration()
> error in the IOC.
> I have not tried with older Andor SDK.
>
> I can make a pull request on Github.
>
> Thanks,
> Hinko
> --
> .. the more I see the less I believe.., AE AoR



-- 
.. the more I see the less I believe.., AE AoR

Replies:
Re: Andor Shamrock ShamrockGetCalibration failure Hinko Kocevar
References:
Andor Shamrock ShamrockGetCalibration failure Hinko Kocevar
Re: Andor Shamrock ShamrockGetCalibration failure Mark Rivers

Navigate by Date:
Prev: Re: Andor Shamrock ShamrockGetCalibration failure Mark Rivers
Next: Re: Andor Shamrock ShamrockGetCalibration failure Hinko Kocevar
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Andor Shamrock ShamrockGetCalibration failure Mark Rivers
Next: Re: Andor Shamrock ShamrockGetCalibration failure Hinko Kocevar
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·