Experimental Physics and Industrial Control System
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
- Replies:
- Re: Andor Shamrock ShamrockGetCalibration failure Mark Rivers
- Navigate by Date:
- Prev:
RE: How to migrate old data from channel archiver to archiver appliance will.rogers
- Next:
Re: Andor Shamrock ShamrockGetCalibration failure Mark Rivers
- 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: How to migrate old data from channel archiver to archiver appliance will.rogers
- Next:
Re: Andor Shamrock ShamrockGetCalibration failure Mark Rivers
- 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