PSI sics-cvs-psi-2006

This commit is contained in:
2006-05-08 02:00:00 +00:00
committed by Douglas Clowes
parent ae77364de2
commit 6e926b813f
388 changed files with 445529 additions and 14109 deletions

View File

@@ -109,13 +109,9 @@
pMot = FindMotor(pServ->pSics,self->pName);
if(pMot)
{
i = MotorGetPar(pMot,"softzero",&fZero);
i = MotorGetPar(pMot,"sign",&fSign);
assert(i);
for(i = 0; i < self->iNP; i++)
{
self->fAxis[i] -= fZero;
self->fAxis[i] *= fSign;
self->fAxis[i] = MotorHardToSoftPosition(pMot,self->fAxis[i]);
}
}
}
@@ -349,7 +345,8 @@
SCWrite(pCon,"Driving to center done",eStatus);
break;
default:
SCWrite(pCon,"WARNING: driving to center finished with problems",
SCWrite(pCon,
"WARNING: driving to center finished with problems",
eWarning);
break;
@@ -370,7 +367,8 @@
if(argc < 2)
{
SCWrite(pCon,"ERROR: MakeFit expected the name of a scan command as a parameter",
SCWrite(pCon,
"ERROR: MakeFit expected the name of a scan command as a parameter",
eError);
return 0;
}
@@ -408,7 +406,8 @@
iRet1 = AddCommand(pSics,"center",CenterWrapper,NULL,self);
if(!iRet || !iRet1)
{
sprintf(pBueffel,"ERROR: duplicate commands peak and center not created",argv[2]);
sprintf(pBueffel,
"ERROR: duplicate commands peak and center not created");
SCWrite(pCon,pBueffel,eError);
DeleteFitCenter((void *)self);
return 0;
@@ -435,11 +434,15 @@
break;
case -1:
SCWrite(pCon,"WARNING: could not find left hand half width",eWarning);
SCWrite(pCon,"Fit Results most certainly dodgy, SICS suggests measuring a full peak",eWarning);
SCWrite(pCon,
"Fit Results most certainly dodgy, SICS suggests measuring a full peak",
eWarning);
break;
case -2:
SCWrite(pCon,"WARNING: could not find right hand half width",eError);
SCWrite(pCon,"Fit Results most certainly dodgy, SICS suggests measuring a full peak",eWarning);
SCWrite(pCon,
"Fit Results most certainly dodgy, SICS suggests measuring a full peak",
eWarning);
break;
case -3:
SCWrite(pCon,"ERROR: No counts found in Fit!",eError);