From b79e125e889020bbe19e1af17b53cbd06966d03d Mon Sep 17 00:00:00 2001 From: "Ryan@WorkStation" Date: Fri, 20 Oct 2023 12:10:22 -0400 Subject: [PATCH] do the same when digitizer changed in scope --- scope.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scope.cpp b/scope.cpp index 7002d5e..87e082f 100644 --- a/scope.cpp +++ b/scope.cpp @@ -351,6 +351,10 @@ void Scope::ChangeDigitizer(){ digiMTX[index].lock(); ReadScopeSettings(); + if( digi[index]->IsAcqOn() ){ + digi[index]->WriteValue(PHA::CH::ChannelEnable, "False", -1); + digi[index]->WriteValue(PHA::CH::ChannelEnable, "True", cbScopeCh->currentIndex()); + } digiMTX[index].unlock(); allowChange = true;