From a09c2e38a3c790574c89ed675a94c08cbb09f2ee Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Wed, 25 Apr 2018 17:03:25 +0200 Subject: [PATCH] storage cell fix in gui for non jungfrau detectors --- slsDetectorGui/src/qDrawPlot.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index 826343d95..15808c718 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -563,7 +563,9 @@ void qDrawPlot::SetScanArgument(int scanArg){ // Number of Exposures - must be calculated here to get npixelsy for allframes/frameindex scans int numFrames = (isFrameEnabled)*((int)myDet->setTimer(slsDetectorDefs::FRAME_NUMBER,-1)); int numTriggers = (isTriggerEnabled)*((int)myDet->setTimer(slsDetectorDefs::CYCLES_NUMBER,-1)); - int numStoragecells = (int)myDet->setTimer(slsDetectorDefs::STORAGE_CELL_NUMBER, -1); + int numStoragecells = 0; + if (detType == slsDetectorDefs::JUNGFRAU) + numStoragecells = (int)myDet->setTimer(slsDetectorDefs::STORAGE_CELL_NUMBER, -1); numFrames = ((numFrames==0)?1:numFrames); numTriggers = ((numTriggers==0)?1:numTriggers); numStoragecells = ((numStoragecells<=0)?1:numStoragecells+1);