scope can fill histogram
This commit is contained in:
parent
3b9d47bbef
commit
38c4d0d992
26
FSUDAQ.cpp
26
FSUDAQ.cpp
|
@ -394,7 +394,7 @@ void MainWindow::OpenDigitizers(){
|
||||||
}
|
}
|
||||||
|
|
||||||
histThread = new TimingThread(this);
|
histThread = new TimingThread(this);
|
||||||
histThread->SetWaitTimeinSec(1);
|
histThread->SetWaitTimeinSec(0.5);
|
||||||
connect(histThread, &TimingThread::timeUp, this, [=](){
|
connect(histThread, &TimingThread::timeUp, this, [=](){
|
||||||
if( canvas == nullptr ) return;
|
if( canvas == nullptr ) return;
|
||||||
canvas->UpdateCanvas();
|
canvas->UpdateCanvas();
|
||||||
|
@ -457,6 +457,7 @@ void MainWindow::WaitForDigitizersOpen(bool onOff){
|
||||||
bnStartACQ->setEnabled(!onOff);
|
bnStartACQ->setEnabled(!onOff);
|
||||||
bnStopACQ->setEnabled(!onOff);
|
bnStopACQ->setEnabled(!onOff);
|
||||||
chkSaveData->setEnabled(!onOff);
|
chkSaveData->setEnabled(!onOff);
|
||||||
|
bnCanvas->setEnabled(!onOff);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -809,11 +810,24 @@ void MainWindow::OpenScope(){
|
||||||
bnStopACQ->setEnabled(false);
|
bnStopACQ->setEnabled(false);
|
||||||
});
|
});
|
||||||
connect(scope, &Scope::TellACQOnOff, this, [=](bool onOff){
|
connect(scope, &Scope::TellACQOnOff, this, [=](bool onOff){
|
||||||
if( scope == nullptr ) return;
|
if( scope ) {
|
||||||
if( onOff ) {
|
if( onOff ) {
|
||||||
lbScalarACQStatus->setText("<font style=\"color: green;\"><b>ACQ On</b></font>");
|
lbScalarACQStatus->setText("<font style=\"color: green;\"><b>ACQ On</b></font>");
|
||||||
}else{
|
}else{
|
||||||
lbScalarACQStatus->setText("<font style=\"color: red;\"><b>ACQ Off</b></font>");
|
lbScalarACQStatus->setText("<font style=\"color: red;\"><b>ACQ Off</b></font>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( canvas ){
|
||||||
|
if( onOff ) {
|
||||||
|
histThread->start();
|
||||||
|
}else{
|
||||||
|
if( histThread->isRunning()){
|
||||||
|
histThread->Stop();
|
||||||
|
histThread->quit();
|
||||||
|
histThread->wait();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,6 @@ Scope::Scope(Digitizer ** digi, unsigned int nDigi, ReadDataThread ** readDataTh
|
||||||
layout->addWidget(bnReadSettingsFromBoard, rowID, 2);
|
layout->addWidget(bnReadSettingsFromBoard, rowID, 2);
|
||||||
connect(bnReadSettingsFromBoard, &QPushButton::clicked, this, &Scope::ReadSettingsFromBoard);
|
connect(bnReadSettingsFromBoard, &QPushButton::clicked, this, &Scope::ReadSettingsFromBoard);
|
||||||
|
|
||||||
|
|
||||||
QPushButton * bnClearMemory = new QPushButton("Clear Memory", this);
|
QPushButton * bnClearMemory = new QPushButton("Clear Memory", this);
|
||||||
layout->addWidget(bnClearMemory, rowID, 3);
|
layout->addWidget(bnClearMemory, rowID, 3);
|
||||||
connect(bnClearMemory, &QPushButton::clicked, this, [=](){
|
connect(bnClearMemory, &QPushButton::clicked, this, [=](){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user