panels enabled bug fix
This commit is contained in:
parent
f6bbf0bf79
commit
e56cddaf06
|
@ -561,7 +561,7 @@ void Digitizer2Gen::SaveDataToFile(){
|
|||
CloseOutFile();
|
||||
outFileIndex ++;
|
||||
sprintf(outFileName, "%s_%03d.sol", outFileNameBase.c_str(), outFileIndex);
|
||||
outFile = fopen(outFileName, "a+b");
|
||||
outFile = fopen(outFileName, "wb"); //overwrite binary
|
||||
}
|
||||
|
||||
if( evt->dataType == 0){
|
||||
|
|
|
@ -121,7 +121,7 @@ class Digitizer2Gen {
|
|||
uint64_t GetHandle() const {return handle;}
|
||||
|
||||
Event *evt; // should be evt[MaxNumber], when full or stopACQ, save into file
|
||||
void OpenOutFile(std::string fileName, const char * mode = "w");
|
||||
void OpenOutFile(std::string fileName, const char * mode = "wb"); //overwrite binary
|
||||
void CloseOutFile();
|
||||
void SaveDataToFile();
|
||||
unsigned int GetFileSize() const {return outFileSize;}
|
||||
|
|
|
@ -199,7 +199,6 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){
|
|||
bnOpenScope->setEnabled(true);
|
||||
chkSaveRun->setEnabled(true);
|
||||
if(chkSaveRun->isChecked() ) cbAutoRun->setEnabled(true);
|
||||
|
||||
if( digiSetting ) digiSetting->EnableControl();
|
||||
|
||||
});
|
||||
|
@ -563,6 +562,10 @@ void MainWindow::AutoRun(){
|
|||
bnStartACQ->setEnabled(true);
|
||||
bnStopACQ->setEnabled(false);
|
||||
bnComment->setEnabled(false);
|
||||
bnOpenScope->setEnabled(true);
|
||||
chkSaveRun->setEnabled(true);
|
||||
cbAutoRun->setEnabled(true);
|
||||
if( digiSetting ) digiSetting->EnableControl();
|
||||
}else{
|
||||
|
||||
LogMsg("Wait for 10 sec for next Run....");
|
||||
|
|
Loading…
Reference in New Issue
Block a user