in scope when channel change, disbale all other channel but the one selected

This commit is contained in:
Ryan Tang 2023-10-20 12:05:03 -04:00
parent 9010673a4f
commit 5f3b3909a0

View File

@ -89,6 +89,10 @@ Scope::Scope(Digitizer2Gen **digi, unsigned int nDigi, ReadDataThread ** readDat
int iDigi = cbScopeDigi->currentIndex(); int iDigi = cbScopeDigi->currentIndex();
digiMTX[iDigi].lock(); digiMTX[iDigi].lock();
ReadScopeSettings(); ReadScopeSettings();
if( digi[iDigi]->IsAcqOn()){
digi[iDigi]->WriteValue(PHA::CH::ChannelEnable, "False", -1);
digi[iDigi]->WriteValue(PHA::CH::ChannelEnable, "True", cbScopeCh->currentIndex());
}
digiMTX[iDigi].unlock(); digiMTX[iDigi].unlock();
}); });