| 
						
						
							
								
							
						
						
					 | 
					@ -28,6 +28,9 @@ MainWindow::MainWindow(QWidget* parent) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    _emul = new EmulatorProperties; | 
					 | 
					 | 
					    _emul = new EmulatorProperties; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    _prb = new PrbCase; | 
					 | 
					 | 
					    _prb = new PrbCase; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    movie = new QMovie("/home/hasis/Desktop/Develop_HardwareTest/gifs/Glass lines.gif"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    ui->l_programming->hide(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    _colorMap = new QCPColorMap(ui->plot_2->xAxis, ui->plot_2->yAxis); | 
					 | 
					 | 
					    _colorMap = new QCPColorMap(ui->plot_2->xAxis, ui->plot_2->yAxis); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->plot_2->setInteractions(QCP::iRangeZoom | QCP::iRangeDrag); | 
					 | 
					 | 
					    ui->plot_2->setInteractions(QCP::iRangeZoom | QCP::iRangeDrag); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -62,7 +65,6 @@ MainWindow::MainWindow(QWidget* parent) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->tb_prbCtrlRomInfo->setPlaceholderText("info"); | 
					 | 
					 | 
					    ui->tb_prbCtrlRomInfo->setPlaceholderText("info"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->tb_prbRomIdRead->setPlaceholderText("id(hex)"); | 
					 | 
					 | 
					    ui->tb_prbRomIdRead->setPlaceholderText("id(hex)"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->tb_prbRomImpulseRead->setPlaceholderText("impulse"); | 
					 | 
					 | 
					    ui->tb_prbRomImpulseRead->setPlaceholderText("impulse"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->prg_programming->setVisible(false); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    //connect(this, &MainWindow::updateBlockProgressValue, this,
 | 
					 | 
					 | 
					    //connect(this, &MainWindow::updateBlockProgressValue, this,
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    //&MainWindow::newBlockProgressValue);
 | 
					 | 
					 | 
					    //&MainWindow::newBlockProgressValue);
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -77,6 +79,7 @@ MainWindow::MainWindow(QWidget* parent) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    //connect(this, &MainWindow::updateAdcLoggerProgressVisibility, this,
 | 
					 | 
					 | 
					    //connect(this, &MainWindow::updateAdcLoggerProgressVisibility, this,
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    //&MainWindow::newAdcLoggerProgressVisibility);
 | 
					 | 
					 | 
					    //&MainWindow::newAdcLoggerProgressVisibility);
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    connect(ui->action_Exit, &QAction::triggered, this, &MainWindow::exitApp); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(this, &MainWindow::showMessage, this, &MainWindow::newMessage); | 
					 | 
					 | 
					    connect(this, &MainWindow::showMessage, this, &MainWindow::newMessage); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(this, &MainWindow::connectedPrbChange, this, &MainWindow::getPrbChange); | 
					 | 
					 | 
					    connect(this, &MainWindow::connectedPrbChange, this, &MainWindow::getPrbChange); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(this, &MainWindow::frameLostCall, this, &MainWindow::getFrameLost); | 
					 | 
					 | 
					    connect(this, &MainWindow::frameLostCall, this, &MainWindow::getFrameLost); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -84,9 +87,7 @@ MainWindow::MainWindow(QWidget* parent) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(this, &MainWindow::scenarioReady, this, &MainWindow::setScenario); | 
					 | 
					 | 
					    connect(this, &MainWindow::scenarioReady, this, &MainWindow::setScenario); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(this, &MainWindow::labelState, this, &MainWindow::getLabelState); | 
					 | 
					 | 
					    connect(this, &MainWindow::labelState, this, &MainWindow::getLabelState); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(this, &MainWindow::fpgaProgrammer, this, &MainWindow::getFpgaProgrammer); | 
					 | 
					 | 
					    connect(this, &MainWindow::fpgaProgrammer, this, &MainWindow::getFpgaProgrammer); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					#ifdef DEVELOP_UI | 
					 | 
					 | 
					    connect(this, &MainWindow::programmingGif, this, &MainWindow::getProgrammingGif); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(_trx._fpgaProgram,&FpgaProgram::programmingProgress, this, &MainWindow::getProgrammingProgress); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					#endif | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    //////////////////////// DMA Packet Connections //////////////////////////////
 | 
					 | 
					 | 
					    //////////////////////// DMA Packet Connections //////////////////////////////
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    connect(&_trx, &TrxBoard::sendFramePacket, this, &MainWindow::getFramePacket); | 
					 | 
					 | 
					    connect(&_trx, &TrxBoard::sendFramePacket, this, &MainWindow::getFramePacket); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -170,6 +171,8 @@ MainWindow::~MainWindow() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    delete _vec; | 
					 | 
					 | 
					    delete _vec; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    delete _emul; | 
					 | 
					 | 
					    delete _emul; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    delete movie; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					///*************************************************************************************************/
 | 
					 | 
					 | 
					///*************************************************************************************************/
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -895,21 +898,12 @@ void MainWindow::on_btn_fpgaBrowse_clicked() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					/*************************************************************************************************/ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					void MainWindow::getProgrammingProgress(qint32 progressValue, qint32 bitFileSize) | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->prg_programming->setVisible(true); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->prg_programming->setRange(0, bitFileSize); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ui->prg_programming->setValue(progressValue); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					/*************************************************************************************************/ | 
					 | 
					 | 
					/*************************************************************************************************/ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					void MainWindow::getFpgaProgrammer(QString path) | 
					 | 
					 | 
					void MainWindow::getFpgaProgrammer(QString path) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{ | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    try | 
					 | 
					 | 
					    try | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    { | 
					 | 
					 | 
					    { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        _trx.slaveFpgaProgram(path); | 
					 | 
					 | 
					        _trx.slaveFpgaProgram(path); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ui->prg_programming->setVisible(false); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    catch(SonoException& e) | 
					 | 
					 | 
					    catch(SonoException& e) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    { | 
					 | 
					 | 
					    { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -917,6 +911,17 @@ void MainWindow::getFpgaProgrammer(QString path) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					/*************************************************************************************************/ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					void MainWindow::getProgrammingGif() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    movie->setSpeed(100); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    ui->l_programming->setMovie(movie); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    ui->l_programming->show(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    movie->start(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    //ui->l_programming->update();
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    //qApp->processEvents();
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					/*************************************************************************************************/ | 
					 | 
					 | 
					/*************************************************************************************************/ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					void MainWindow::getLabelState(QLabel *label, QString str, QColor color) | 
					 | 
					 | 
					void MainWindow::getLabelState(QLabel *label, QString str, QColor color) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{ | 
					 | 
					 | 
					{ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -931,6 +936,8 @@ void MainWindow::on_btn_fpgaProgram_clicked() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					{ | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    auto path = ui->tb_fpgaBit->text(); | 
					 | 
					 | 
					    auto path = ui->tb_fpgaBit->text(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    //emit programmingGif();
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    QString str = "doing"; | 
					 | 
					 | 
					    QString str = "doing"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    QColor color = Qt::red; | 
					 | 
					 | 
					    QColor color = Qt::red; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    emit labelState(ui->l_programDone, str, color); | 
					 | 
					 | 
					    emit labelState(ui->l_programDone, str, color); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -940,6 +947,8 @@ void MainWindow::on_btn_fpgaProgram_clicked() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    str = "done"; | 
					 | 
					 | 
					    str = "done"; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    color = Qt::green; | 
					 | 
					 | 
					    color = Qt::green; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    emit labelState(ui->l_programDone, str, color); | 
					 | 
					 | 
					    emit labelState(ui->l_programDone, str, color); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    //ui->l_programming->hide();
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					/*************************************************************************************************/ | 
					 | 
					 | 
					/*************************************************************************************************/ | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -1192,10 +1201,12 @@ void MainWindow::on_chk_continuousShowing_clicked() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    { | 
					 | 
					 | 
					    { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        QtConcurrent::run(this, &MainWindow::on_btn_dmaShow_clicked); | 
					 | 
					 | 
					        QtConcurrent::run(this, &MainWindow::on_btn_dmaShow_clicked); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        _dmaShow = true; | 
					 | 
					 | 
					        _dmaShow = true; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        ui->btn_dmaShow->hide(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    else | 
					 | 
					 | 
					    else | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    { | 
					 | 
					 | 
					    { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        _dmaShow = false; | 
					 | 
					 | 
					        _dmaShow = false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        ui->btn_dmaShow->show(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -1227,6 +1238,8 @@ void MainWindow::on_btn_scenStart_clicked() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        else | 
					 | 
					 | 
					        else | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        { | 
					 | 
					 | 
					        { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            ui->btn_scenStart->setText("Scenario Start"); | 
					 | 
					 | 
					            ui->btn_scenStart->setText("Scenario Start"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            ui->chk_continuousShowing->setChecked(false); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            on_chk_continuousShowing_clicked(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            ui->btn_dmaLogLast->setHidden(true); | 
					 | 
					 | 
					            ui->btn_dmaLogLast->setHidden(true); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            _dmaLog = false; | 
					 | 
					 | 
					            _dmaLog = false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            _dmaRun = false; | 
					 | 
					 | 
					            _dmaRun = false; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -3093,3 +3106,7 @@ void MainWindow::setAfeConfig() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					/*************************************************************************************************/ | 
					 | 
					 | 
					/*************************************************************************************************/ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					void MainWindow::exitApp() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					{ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    this->QWidget::close(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					
  |