|
@ -745,7 +745,7 @@ void MainWindow::getPrbChange() |
|
|
} |
|
|
} |
|
|
if(_prb->prbA.errorCode == EEPROM_CRC_ERROR) |
|
|
if(_prb->prbA.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe A eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe A eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -783,7 +783,7 @@ void MainWindow::getPrbChange() |
|
|
} |
|
|
} |
|
|
if(_prb->prbB.errorCode == EEPROM_CRC_ERROR) |
|
|
if(_prb->prbB.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe B eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe B eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -821,7 +821,7 @@ void MainWindow::getPrbChange() |
|
|
} |
|
|
} |
|
|
if(_prb->prbC.errorCode == EEPROM_CRC_ERROR) |
|
|
if(_prb->prbC.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe C eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe C eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -859,7 +859,7 @@ void MainWindow::getPrbChange() |
|
|
} |
|
|
} |
|
|
if(_prb->prbD.errorCode == EEPROM_CRC_ERROR) |
|
|
if(_prb->prbD.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe D eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe D eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -1597,7 +1597,7 @@ bool MainWindow::scenarioStartPermission() |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
permission = false; |
|
|
permission = false; |
|
|
throw "Probe A not connected, so can't be selected."; |
|
|
throw SonoException("Probe A not connected, so can't be selected."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1610,7 +1610,7 @@ bool MainWindow::scenarioStartPermission() |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
permission = false; |
|
|
permission = false; |
|
|
throw "Probe B not connected, so can't be selected."; |
|
|
throw SonoException("Probe B not connected, so can't be selected."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1623,7 +1623,7 @@ bool MainWindow::scenarioStartPermission() |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
permission = false; |
|
|
permission = false; |
|
|
throw "Probe C not connected, so can't be selected."; |
|
|
throw SonoException("Probe C not connected, so can't be selected."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1636,7 +1636,7 @@ bool MainWindow::scenarioStartPermission() |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
permission = false; |
|
|
permission = false; |
|
|
throw "Probe D not connected, so can't be selected."; |
|
|
throw SonoException("Probe D not connected, so can't be selected."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -1663,6 +1663,8 @@ void MainWindow::on_btn_scenStart_clicked() |
|
|
auto str = ui->btn_scenStart->text(); |
|
|
auto str = ui->btn_scenStart->text(); |
|
|
if(str == "Scenario Start") |
|
|
if(str == "Scenario Start") |
|
|
{ |
|
|
{ |
|
|
|
|
|
_trx.powerAo(true); |
|
|
|
|
|
delay(100); |
|
|
if(scenarioStartPermission()) |
|
|
if(scenarioStartPermission()) |
|
|
{ |
|
|
{ |
|
|
_trx.preSubBatch = -1; |
|
|
_trx.preSubBatch = -1; |
|
@ -1694,6 +1696,10 @@ void MainWindow::on_btn_scenStart_clicked() |
|
|
ui->lcd_dmaCounter); |
|
|
ui->lcd_dmaCounter); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
_trx.powerAo(false); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
@ -3034,7 +3040,7 @@ QByteArray MainWindow::str2ByteArray (QString& str) |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
throw"Out of range"; |
|
|
throw SonoException("Out of range"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
for(quint8 k = 0; k < temp.size() / 2; k++) |
|
|
for(quint8 k = 0; k < temp.size() / 2; k++) |
|
@ -3857,7 +3863,7 @@ void MainWindow::on_btn_prbRomIdRead_clicked() |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe A eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe A eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -3884,7 +3890,7 @@ void MainWindow::on_btn_prbRomIdRead_clicked() |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe B eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe B eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -3911,7 +3917,7 @@ void MainWindow::on_btn_prbRomIdRead_clicked() |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe C eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe C eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -3938,7 +3944,7 @@ void MainWindow::on_btn_prbRomIdRead_clicked() |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
ui->tb_prbRomIdRead->setText(uint2IdString(romStatus.id)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe D eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe D eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -3983,7 +3989,7 @@ void MainWindow::on_btn_prbRomImpulseRead_clicked() |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe A eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe A eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4012,7 +4018,7 @@ void MainWindow::on_btn_prbRomImpulseRead_clicked() |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe B eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe B eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4041,7 +4047,7 @@ void MainWindow::on_btn_prbRomImpulseRead_clicked() |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe C eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe C eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4070,7 +4076,7 @@ void MainWindow::on_btn_prbRomImpulseRead_clicked() |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
ui->tb_prbRomImpulseRead->setText(byteArray2InfoString(receivingArray)); |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe D eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe D eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4259,7 +4265,7 @@ void MainWindow::on_btn_prbRomWriteAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe A eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe A eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4287,7 +4293,7 @@ void MainWindow::on_btn_prbRomWriteAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe B eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe B eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4315,7 +4321,7 @@ void MainWindow::on_btn_prbRomWriteAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe C eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe C eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4343,7 +4349,7 @@ void MainWindow::on_btn_prbRomWriteAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe D eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe D eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4388,7 +4394,7 @@ void MainWindow::on_btn_prbRomReadAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe A eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe A eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4416,7 +4422,7 @@ void MainWindow::on_btn_prbRomReadAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe B eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe B eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4444,7 +4450,7 @@ void MainWindow::on_btn_prbRomReadAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe C eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe C eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -4472,7 +4478,7 @@ void MainWindow::on_btn_prbRomReadAll_clicked() |
|
|
|
|
|
|
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
if(romStatus.errorCode == EEPROM_CRC_ERROR) |
|
|
{ |
|
|
{ |
|
|
throw"The crc error of the probe D eeprom is occured."; |
|
|
throw SonoException("The crc error of the probe D eeprom is occured."); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
@ -5475,6 +5481,7 @@ void MainWindow::exitApp() |
|
|
on_chk_pulserTstModeEn_clicked(false); |
|
|
on_chk_pulserTstModeEn_clicked(false); |
|
|
_trx.setTxDacEnable(BITE_INTERVAL, false); |
|
|
_trx.setTxDacEnable(BITE_INTERVAL, false); |
|
|
_trx.setAdgCfg(adgGnd); |
|
|
_trx.setAdgCfg(adgGnd); |
|
|
|
|
|
_trx.mpsReset(); |
|
|
|
|
|
|
|
|
this->QWidget::close(); |
|
|
this->QWidget::close(); |
|
|
} |
|
|
} |
|
|