Scope, when no trigger, trace will not be removed and trigger rate trun red

This commit is contained in:
splitPoleDAQ 2023-11-17 12:14:15 -05:00
parent 0e28cfcd12
commit e4915a5a74

View File

@ -467,7 +467,13 @@ void Scope::UpdateScope(){
Data * data = digi[ID]->GetData();
//leTriggerRate->setText(QString::number(data->TriggerRate[ch]) + " [" + QString::number(data->NumEventsDecoded[ch]) + "]");
leTriggerRate->setText(QString::number(data->TriggerRate[ch]));
if( data->TriggerRate[ch] == 0){
leTriggerRate->setStyleSheet("font-weight : bold; color : red;");
leTriggerRate->setText("No Trigger");
}else{
leTriggerRate->setStyleSheet("");
leTriggerRate->setText(QString::number(data->TriggerRate[ch]));
}
int index = data->DataIndex[ch];
int traceLength = data->Waveform1[ch][index].size();