- Changed FOCUS to writing data files through nxscript

This commit is contained in:
cvs
2004-05-04 14:06:17 +00:00
parent 55848218a4
commit ce6001e443
4 changed files with 9 additions and 6 deletions

View File

@ -116,7 +116,7 @@ static float SWGetValue(void *pData, SConnection *pCon)
*/
if(self->myNumber != self->selectedMotor[0])
{
SCWrite(pCon,"WARNING: motor not activem returning stored value",
SCWrite(pCon,"WARNING: motor not active, returning stored value",
eWarning);
return self->positions[self->myNumber];
}
@ -174,6 +174,7 @@ static long SWSetValue(void *pData, SConnection *pCon, float fVal)
SCWrite(pCon,"Standby, starting reference run... ", eWarning);
pElli = (EL734Driv *)self->pMaster->pDriver;
sprintf(pCommand,"R %d\r",pElli->iMotor);
setRS232Timeout(pElli->controller,2000);
status = transactRS232(pElli->controller,pCommand,strlen(pCommand),
pError,131);
if(status != 1)
@ -316,7 +317,7 @@ int MakeSWHPMotor(SConnection *pCon, SicsInterp *pSics, void *pData,
sw1->pDriv->CheckLimits = SWCheckLimits;
/*
create clones of the new data structure ofr the other slaves
create clones of the new data structure of the other slaves
*/
sw2 = (pSWmot)malloc(sizeof(SWmot));
sw3 = (pSWmot)malloc(sizeof(SWmot));