- Implemented defpos for multiple motors

- Implemented automatic backup on parameter change
- Implemented silent restore
- Cleaned a couple of unused flags from connection object
This commit is contained in:
cvs
2003-02-19 08:29:46 +00:00
parent e6d39f3ac8
commit 98cfb3ddda
31 changed files with 491 additions and 101 deletions

5
scan.c
View File

@ -1869,6 +1869,7 @@ int StoreScanCounts(pScanData self, char *data)
char *pPtr = NULL, pItem[20];
long *lData = NULL;
int i;
writeFunc oldWrite;
self = (pScanData)pEventData;
pCon = (SConnection *)pUser;
@ -1905,13 +1906,17 @@ int StoreScanCounts(pScanData self, char *data)
/* get counts */
GetScanCounts(self,lData,self->iNP);
/* format a message */
strcpy(pPtr,"scan.Counts= ");
for(i = 0; i < self->iNP; i++)
{
sprintf(pItem,"{%d} ",lData[i]);
strcat(pPtr,pItem);
}
oldWrite = SCGetWriteFunc(pCon);
SCSetWriteFunc(pCon,SCOnlySockWrite);
SCWrite(pCon,pPtr,eWarning);
SCSetWriteFunc(pCon,oldWrite);
free(lData);
free(pPtr);
return 1;