From 2245b5f48dc7fe8d3cde28ff017927677d65fb8d Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Mon, 12 Mar 2007 10:28:42 +1100 Subject: [PATCH] Implement speed parameter for 'fastscan' differential scan capability r1633 | dcl | 2007-03-12 10:28:42 +1100 (Mon, 12 Mar 2007) | 2 lines --- site_ansto/motor_asim.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/site_ansto/motor_asim.c b/site_ansto/motor_asim.c index 9a159189..6e82661d 100644 --- a/site_ansto/motor_asim.c +++ b/site_ansto/motor_asim.c @@ -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); } /*---------------------------------------------------------------------------*/