Add some initialisaton for each new scan, so we don't reuse old data

r3656 | dcl | 2012-07-19 14:58:21 +1000 (Thu, 19 Jul 2012) | 1 line
This commit is contained in:
Douglas Clowes
2012-07-19 14:58:21 +10:00
parent 5118d7b23e
commit 7727408b80

View File

@@ -178,6 +178,7 @@ static int StartDiffScan(pDiffScan self, pScanData pScan,
self->scaleMonitor = (int)ObVal(self->parArray,DIFFMONITOR);
self->normalizationScale = -1;
pScan->iCounts = 0;
pScan->iNP = 0;
/*
get variable
@@ -188,7 +189,8 @@ static int StartDiffScan(pDiffScan self, pScanData pScan,
SCWrite(pCon,"ERROR: cannot access scan variable",eError);
return 0;
}
InitScanVar(pVar);
/*
drive to start position
*/