PSI UPDATE
r1724 | ffr | 2007-03-27 07:56:13 +1000 (Tue, 27 Mar 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
cd0de991b4
commit
6921d0426c
32
stdscan.c
32
stdscan.c
@@ -787,16 +787,8 @@ int prepareDataFile(pScanData self){
|
||||
pVar = (pVarEntry)pDings;
|
||||
if(pVar)
|
||||
{
|
||||
if(jochenFlag == 1 &&
|
||||
strcmp(pVar->pObject->pDescriptor->name, "Motor") == 0)
|
||||
{
|
||||
MotorGetSoftPosition((pMotor)pVar->pObject,self->pCon,&fVal);
|
||||
}
|
||||
else
|
||||
{
|
||||
fVal = pVar->pInter->GetValue(pVar->pObject,self->pCon);
|
||||
}
|
||||
AppendScanVar(pVar,fVal);
|
||||
fVal = pVar->pInter->GetValue(pVar->pObject,self->pCon);
|
||||
AppendScanVar(pVar,fVal);
|
||||
sprintf(pItem,"%-9.9s ",ScanVarName(pVar));
|
||||
strcat(pHead,pItem);
|
||||
sprintf(pItem,"%-9.3f ",fVal);
|
||||
@@ -841,11 +833,6 @@ int prepareDataFile(pScanData self){
|
||||
{
|
||||
return CollectScanDataIntern(self,iPoint,0);
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
int CollectScanDataJochen(pScanData self, int iPoint)
|
||||
{
|
||||
return CollectScanDataIntern(self,iPoint,1);
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
int CollectSilent(pScanData self, int iPoint)
|
||||
{
|
||||
@@ -867,15 +854,7 @@ int prepareDataFile(pScanData self){
|
||||
pVar = (pVarEntry)pDings;
|
||||
if(pVar)
|
||||
{
|
||||
if(jochenFlag == 1 &&
|
||||
strcmp(pVar->pObject->pDescriptor->name, "Motor") == 0)
|
||||
{
|
||||
MotorGetSoftPosition((pMotor)pVar->pObject,self->pCon,&fVal);
|
||||
}
|
||||
else
|
||||
{
|
||||
fVal = pVar->pInter->GetValue(pVar->pObject,self->pCon);
|
||||
}
|
||||
fVal = pVar->pInter->GetValue(pVar->pObject,self->pCon);
|
||||
AppendScanVar(pVar,fVal);
|
||||
}
|
||||
}
|
||||
@@ -1140,7 +1119,10 @@ int StandardScanWrapper(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
}
|
||||
strtolower(argv[1]);
|
||||
self = (pScanData)FindCommandData(pSics,argv[2],"ScanObject");
|
||||
assert(self);
|
||||
if(self == NULL){
|
||||
SCWrite(pCon,"ERROR: scan object not found",eError);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(strcmp(argv[1],"writeheader") == 0){
|
||||
return WriteHeader(self);
|
||||
|
||||
Reference in New Issue
Block a user