mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-14 05:47:14 +02:00
bugfix to gui and updating gui about
This commit is contained in:
@ -369,26 +369,26 @@ void qTabDataOutput::SetRateCorrection() {
|
||||
}
|
||||
|
||||
void qTabDataOutput::GetSpeed() {
|
||||
LOG(logDEBUG) << "Getting Speed";
|
||||
LOG(logDEBUG) << "Getting Readout Speed";
|
||||
disconnect(comboClkDivider, SIGNAL(currentIndexChanged(int)), this,
|
||||
SLOT(SetSpeed(int)));
|
||||
try {
|
||||
auto retval =
|
||||
det->getSpeed().tsquash("Speed is inconsistent for all detectors.");
|
||||
det->getReadoutSpeed().tsquash("Readout Speed is inconsistent for all detectors.");
|
||||
comboClkDivider->setCurrentIndex(static_cast<int>(retval));
|
||||
}
|
||||
CATCH_DISPLAY("Could not get speed.", "qTabDataOutput::GetSpeed")
|
||||
CATCH_DISPLAY("Could not get readout speed.", "qTabDataOutput::GetSpeed")
|
||||
connect(comboClkDivider, SIGNAL(currentIndexChanged(int)), this,
|
||||
SLOT(SetSpeed(int)));
|
||||
}
|
||||
|
||||
void qTabDataOutput::SetSpeed(int speed) {
|
||||
LOG(logINFO) << "Setting Speed to "
|
||||
LOG(logINFO) << "Setting Readout Speed to "
|
||||
<< comboClkDivider->currentText().toAscii().data();
|
||||
try {
|
||||
det->setSpeed(static_cast<slsDetectorDefs::speedLevel>(speed));
|
||||
det->setReadoutSpeed(static_cast<slsDetectorDefs::speedLevel>(speed));
|
||||
}
|
||||
CATCH_HANDLE("Could not set speed.", "qTabDataOutput::SetSpeed", this,
|
||||
CATCH_HANDLE("Could not set readout speed.", "qTabDataOutput::SetSpeed", this,
|
||||
&qTabDataOutput::GetSpeed)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user