|
|
@ -3489,9 +3489,28 @@ void MainWindow::on_chk_scenFrameAdcLog_clicked(bool checked) |
|
|
|
chk->setEnabled(!checked); |
|
|
|
} |
|
|
|
|
|
|
|
ui->tb_adcLogCount->setEnabled(false); |
|
|
|
ui->tb_syncCount->setEnabled(!checked); |
|
|
|
ui->cb_syncMode->setEnabled(!checked); |
|
|
|
|
|
|
|
if(checked) |
|
|
|
{ |
|
|
|
if(ui->chk_batchLogEn->isChecked()) |
|
|
|
ui->tb_adcLogCount->setEnabled(checked); |
|
|
|
} |
|
|
|
else |
|
|
|
ui->tb_adcLogCount->setEnabled(false); |
|
|
|
} |
|
|
|
|
|
|
|
/*************************************************************************************************/ |
|
|
|
void MainWindow::on_chk_batchLogEn_clicked(bool checked) |
|
|
|
{ |
|
|
|
if(checked) |
|
|
|
{ |
|
|
|
if(ui->chk_scenFrameAdcLog->isChecked()) |
|
|
|
ui->tb_adcLogCount->setEnabled(checked); |
|
|
|
} |
|
|
|
else |
|
|
|
ui->tb_adcLogCount->setEnabled(false); |
|
|
|
} |
|
|
|
|
|
|
|
/*************************************************************************************************/ |
|
|
@ -3538,6 +3557,7 @@ void MainWindow::catchAdcLog() |
|
|
|
{ |
|
|
|
QString str; |
|
|
|
QColor color; |
|
|
|
QDir dir; |
|
|
|
|
|
|
|
QString adcLoggerPath = ui->tb_adcLogPath->text(); |
|
|
|
|
|
|
@ -3686,19 +3706,53 @@ void MainWindow::catchAdcLog() |
|
|
|
color = Qt::red; |
|
|
|
emit labelState(ui->l_adcLogDone, str, color); |
|
|
|
|
|
|
|
for(quint16 var = startIdx; var <= endIdx; var++) |
|
|
|
quint32 iter(1); |
|
|
|
if(ui->chk_batchLogEn->isChecked()) |
|
|
|
{ |
|
|
|
capConfig.syncCount = var; |
|
|
|
_trx.adcCaptureConfig(capConfig); |
|
|
|
_trx.adcCaptureStart(); |
|
|
|
_trx.scenPlayerStart(true); |
|
|
|
_trx.adcCaptureDone(); |
|
|
|
_trx.scenPlayerStop(true); |
|
|
|
_trx.adcLoggerStart(adcLoggerPath, "scenIndx(" + QString::number(var) + ")"); |
|
|
|
iter = adcLogCnt; |
|
|
|
} |
|
|
|
|
|
|
|
ui->lcd_adcCounter->display((var - startIdx) + 1); |
|
|
|
for(quint32 i = 0; i < iter; i++) |
|
|
|
{ |
|
|
|
qApp->processEvents(); |
|
|
|
QString logFolder = QString::number(i + 1); |
|
|
|
QString updatePath = adcLoggerPath + "/" + logFolder; |
|
|
|
ui->tb_adcLogPath->setText(updatePath); |
|
|
|
|
|
|
|
qApp->processEvents(); |
|
|
|
if(!dir.exists(updatePath)) |
|
|
|
{ |
|
|
|
dir.mkpath(updatePath); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
dir.cd(updatePath); |
|
|
|
dir.removeRecursively(); |
|
|
|
dir.mkpath(updatePath); |
|
|
|
} |
|
|
|
|
|
|
|
for(quint16 var = startIdx; var <= endIdx; var++) |
|
|
|
{ |
|
|
|
capConfig.syncCount = var; |
|
|
|
capConfig.sampleCount = sampleCnt + i * 2048; |
|
|
|
ui->tb_sampleCount->setText(QString::number(sampleCnt)); |
|
|
|
|
|
|
|
_trx.adcCaptureConfig(capConfig); |
|
|
|
_trx.adcCaptureStart(); |
|
|
|
_trx.scenPlayerStart(true); |
|
|
|
_trx.adcCaptureDone(); |
|
|
|
_trx.scenPlayerStop(true); |
|
|
|
_trx.adcLoggerStart(updatePath, "scenIndx(" + QString::number(var) + ")"); |
|
|
|
|
|
|
|
ui->lcd_adcCounter->display((var - startIdx) + 1); |
|
|
|
qApp->processEvents(); |
|
|
|
|
|
|
|
if(_discardAdcLog) |
|
|
|
{ |
|
|
|
_discardAdcLog = false; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
if(_discardAdcLog) |
|
|
|
{ |
|
|
|
_discardAdcLog = false; |
|
|
@ -4789,4 +4843,3 @@ void MainWindow::on_btn_discard_clicked(void) |
|
|
|
{ |
|
|
|
_discardTempTest = true; |
|
|
|
} |
|
|
|
|
|
|
|