do the same when digitizer changed in scope

This commit is contained in:
Ryan Tang 2023-10-20 12:10:22 -04:00
parent 5f3b3909a0
commit b79e125e88

View File

@ -351,6 +351,10 @@ void Scope::ChangeDigitizer(){
digiMTX[index].lock(); digiMTX[index].lock();
ReadScopeSettings(); 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(); digiMTX[index].unlock();
allowChange = true; allowChange = true;