mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
trimbits not working yet, nth frame works for eiger, scans work for eiger
This commit is contained in:
@ -3561,9 +3561,9 @@ int64_t slsDetector::setTimer(timerIndex index, int64_t t){
|
||||
if (t>=0)
|
||||
thisDetector->timerValue[index]=t;
|
||||
}
|
||||
//#ifdef VERBOSE
|
||||
#ifdef VERBOSE
|
||||
std::cout<< "Timer " << index << " set to "<< thisDetector->timerValue[index] << "ns" << std::endl;
|
||||
//#endif
|
||||
#endif
|
||||
|
||||
if ((thisDetector->myDetectorType==MYTHEN)&&(index==PROBES_NUMBER)) {
|
||||
setDynamicRange();
|
||||
|
@ -423,7 +423,13 @@ int slsDetectorActions::executeScan(int level, int istep) {
|
||||
setThresholdEnergy((int)currentScanVariable[level]); //energy scan
|
||||
break;
|
||||
case thresholdScan:
|
||||
setDAC((dacs_t)currentScanVariable[level],THRESHOLD,0); // threshold scan
|
||||
if(getDetectorsType() == EIGER){
|
||||
setDAC((dacs_t)currentScanVariable[level],E_Vcmp_ll,0); // threshold scan
|
||||
setDAC((dacs_t)currentScanVariable[level],E_Vcmp_lr,0); // threshold scan
|
||||
setDAC((dacs_t)currentScanVariable[level],E_Vcmp_rl,0); // threshold scan
|
||||
setDAC((dacs_t)currentScanVariable[level],E_Vcmp_rr,0); // threshold scan
|
||||
}else
|
||||
setDAC((dacs_t)currentScanVariable[level],THRESHOLD,0); // threshold scan
|
||||
break;
|
||||
case trimbitsScan:
|
||||
trimbit=(int)currentScanVariable[level];
|
||||
|
@ -197,6 +197,11 @@ class slsDetectorActions : public virtual slsDetectorBase
|
||||
*/
|
||||
virtual dacs_t setDAC(dacs_t val, dacIndex index , int mV, int imod=-1)=0;
|
||||
|
||||
/** returns the detector type
|
||||
\param pos position in the multi detector structure (is -1 returns type of detector with id -1)
|
||||
\returns type
|
||||
*/
|
||||
virtual detectorType getDetectorsType(int pos=-1)=0;
|
||||
|
||||
virtual int setThresholdEnergy(int, int im=-1, detectorSettings isettings=GET_SETTINGS)=0;
|
||||
virtual int setChannel(int64_t, int ich=-1, int ichip=-1, int imod=-1)=0;
|
||||
|
Reference in New Issue
Block a user