Scope, when no trigger, trace will not be removed and trigger rate trun red
This commit is contained in:
parent
0e28cfcd12
commit
e4915a5a74
|
@ -467,7 +467,13 @@ void Scope::UpdateScope(){
|
||||||
Data * data = digi[ID]->GetData();
|
Data * data = digi[ID]->GetData();
|
||||||
|
|
||||||
//leTriggerRate->setText(QString::number(data->TriggerRate[ch]) + " [" + QString::number(data->NumEventsDecoded[ch]) + "]");
|
//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 index = data->DataIndex[ch];
|
||||||
int traceLength = data->Waveform1[ch][index].size();
|
int traceLength = data->Waveform1[ch][index].size();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user