- Changed FOCUS to writing data files through nxscript
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user