diff --git a/site_ansto/orhvps.c b/site_ansto/orhvps.c index 2cf3ddfd..5721faef 100644 --- a/site_ansto/orhvps.c +++ b/site_ansto/orhvps.c @@ -644,6 +644,10 @@ static int ORHVPSGetValue( pEVDriver self, float* fPos) { * Set the current value from SICS */ static int ORHVPSSetValue( pEVDriver self, float fPos) { + + char reply[CMDLEN]; + int rep_len = CMDLEN; + pORHVPSDriv priv = NULL; assert(self); assert(self->pPrivate); @@ -656,6 +660,9 @@ static int ORHVPSSetValue( pEVDriver self, float fPos) { priv->iErrorCode = ORHVPS_ERR_RANGE; return 0; } + + AsyncUnitTransact(priv->asyncUnit, "Jz", 2, reply, &rep_len); + priv->fTarget = fPos; priv->bRunFlag = true; return 1;