when open digitizer, always set no trace recording

This commit is contained in:
Ryan Tang 2024-09-06 18:16:18 -04:00
parent 3b3a22382b
commit 968259787b
2 changed files with 7 additions and 0 deletions

View File

@ -206,6 +206,10 @@ class Digitizer{
return returnData;
}
void SetTrace(bool onOff){
SetBits(DPP::BoardConfiguration, DPP::Bit_BoardConfig::RecordTrace, onOff, -1);
}
};

View File

@ -684,6 +684,9 @@ void FSUDAQ::OpenDigitizers(){
digi[i] = new Digitizer(portList[i].first, portList[i].second);
//digi[i]->Reset();
//===== set no trace, even when FSQDAQ segfault at scope, the digitizer will save no trace
digi[i]->SetTrace(false);
if( cbOpenMethod->currentData().toInt() == 2 ) {
digi[i]->ProgramBoard();
}