From 2122097fccc2d694f74a559fa029a37252b3c71b Mon Sep 17 00:00:00 2001 From: "carina@hades" Date: Tue, 12 Dec 2023 19:13:38 -0500 Subject: [PATCH] load setting only for channels --- ClassDigitizer.cpp | 2 +- DigiSettingsPanel.h | 1 + FSUDAQ.cpp | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ClassDigitizer.cpp b/ClassDigitizer.cpp index 367e58a..5d51a70 100644 --- a/ClassDigitizer.cpp +++ b/ClassDigitizer.cpp @@ -829,7 +829,7 @@ void Digitizer::ProgramSettingsToBoard(){ printf("========== %s \n", __func__); - const short pauseMilliSec = 50; + const short pauseMilliSec = 20; Reg haha; diff --git a/DigiSettingsPanel.h b/DigiSettingsPanel.h index 7dc9029..91439e3 100644 --- a/DigiSettingsPanel.h +++ b/DigiSettingsPanel.h @@ -21,6 +21,7 @@ public: DigiSettingsPanel(Digitizer ** digi, unsigned int nDigi, QString rawDataPath, QMainWindow * parent = nullptr); ~DigiSettingsPanel(); + unsigned short GetTabID() const {return ID;} public slots: void UpdatePanelFromMemory(); diff --git a/FSUDAQ.cpp b/FSUDAQ.cpp index 063f04a..4d20657 100644 --- a/FSUDAQ.cpp +++ b/FSUDAQ.cpp @@ -950,6 +950,8 @@ void MainWindow::UpdateScalar(){ runStatus[iDigi]->setStyleSheet(""); } + if(digiSettings && digiSettings->isVisible() && digiSettings->GetTabID() == iDigi) digiSettings->UpdateACQStatus(acqStatus); + digiMTX[iDigi].lock(); // printf("### %d ", iDigi); // digi[iDigi]->GetData()->PrintAllData(true, 10);