Implement speed parameter for 'fastscan' differential scan capability
r1633 | dcl | 2007-03-12 10:28:42 +1100 (Mon, 12 Mar 2007) | 2 lines
This commit is contained in:
@@ -493,6 +493,11 @@ static int SimGetPar(void *self, char *name, float *value)
|
||||
*value = pDriv->fLower;
|
||||
iSuccess=1;
|
||||
}
|
||||
if (0==strcmp("speed",name))
|
||||
{
|
||||
*value = pDriv->fSpeed;
|
||||
iSuccess=1;
|
||||
}
|
||||
return iSuccess;
|
||||
}
|
||||
|
||||
@@ -509,6 +514,8 @@ static void SimListPar(void *self, char *motorName, SConnection *pCon)
|
||||
SCWrite(pCon,pBuffer,eValue);
|
||||
sprintf(pBuffer,"%s.%s = %f",motorName,"hardlowerlim",pDriv->fLower);
|
||||
SCWrite(pCon,pBuffer,eValue);
|
||||
sprintf(pBuffer,"%s.%s = %f",motorName,"speed",pDriv->fSpeed);
|
||||
SCWrite(pCon,pBuffer,eValue);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user