From 968259787b3d12b5d9fa0553e37d3a347630681d Mon Sep 17 00:00:00 2001 From: "Ryan@SOLARIS_testStation" Date: Fri, 6 Sep 2024 18:16:18 -0400 Subject: [PATCH] when open digitizer, always set no trace recording --- ClassDigitizer.h | 4 ++++ FSUDAQ.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ClassDigitizer.h b/ClassDigitizer.h index 6b7652f..6087493 100644 --- a/ClassDigitizer.h +++ b/ClassDigitizer.h @@ -206,6 +206,10 @@ class Digitizer{ return returnData; } + void SetTrace(bool onOff){ + SetBits(DPP::BoardConfiguration, DPP::Bit_BoardConfig::RecordTrace, onOff, -1); + } + }; diff --git a/FSUDAQ.cpp b/FSUDAQ.cpp index 0c6dd16..6735f65 100644 --- a/FSUDAQ.cpp +++ b/FSUDAQ.cpp @@ -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(); }