diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-10-30 14:30:27 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-10-30 14:30:27 -0500 |
commit | 5c2d024b38ebfd6e0bd4c559ba45aa516ab275f2 (patch) | |
tree | 6bfa12948fe163c76336747a819bf731cedd1982 /clients | |
parent | 8ce60c7f5244a905d466450b762e18620cccfad8 (diff) | |
download | ulab-5c2d024b38ebfd6e0bd4c559ba45aa516ab275f2.tar.gz ulab-5c2d024b38ebfd6e0bd4c559ba45aa516ab275f2.zip |
Fix progress bar not moving during DSP data reception
Fix syntax error in demo main.v file
Diffstat (limited to 'clients')
-rw-r--r-- | clients/tde/src/part/fpgaview/part.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/clients/tde/src/part/fpgaview/part.cpp b/clients/tde/src/part/fpgaview/part.cpp index b40f167..7ddec7d 100644 --- a/clients/tde/src/part/fpgaview/part.cpp +++ b/clients/tde/src/part/fpgaview/part.cpp @@ -1251,7 +1251,7 @@ void FPGAViewPart::receiveInputStatesFromRemoteFPGA() { return; #define POLL_FOR_DATA_IMMEDIATE if (!m_updateTimer->isActive()) { \ - m_updateTimer->start(50, TRUE); \ + m_updateTimer->start(10, TRUE); \ } void FPGAViewPart::updateDisplay() { @@ -1598,7 +1598,6 @@ void FPGAViewPart::updateDisplay() { while (offset < m_dataMemorySize) { m_socket->readBlock(recData.data()+offset, 1024); offset = offset + 1024; - m_base->dataProcessingProgressBar->setProgress((m_dataMemorySize*2) + offset); } m_base->dataProcessingStatusLabel->setText(i18n("Writing data to file") + "..."); @@ -1657,6 +1656,12 @@ void FPGAViewPart::updateDisplay() { POLL_FOR_DATA_IMMEDIATE } else { + // Update the GUI with status information + m_base->dataProcessingProgressBar->setProgress(m_dataMemorySize + m_socket->bytesAvailable()); + if (m_socket->bytesAvailable() > 0) { + m_base->dataProcessingStatusLabel->setText(i18n("Receiving data from FPGA") + "..."); + } + if (!m_timeoutTimer->isActive()) { m_dataOutputFile->flush(); m_dataOutputFile->close(); |