|
|
@ -1251,7 +1251,7 @@ void FPGAViewPart::receiveInputStatesFromRemoteFPGA() {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
#define POLL_FOR_DATA_IMMEDIATE if (!m_updateTimer->isActive()) { \
|
|
|
|
#define POLL_FOR_DATA_IMMEDIATE if (!m_updateTimer->isActive()) { \
|
|
|
|
m_updateTimer->start(50, TRUE); \
|
|
|
|
m_updateTimer->start(10, TRUE); \
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FPGAViewPart::updateDisplay() {
|
|
|
|
void FPGAViewPart::updateDisplay() {
|
|
|
@ -1598,7 +1598,6 @@ void FPGAViewPart::updateDisplay() {
|
|
|
|
while (offset < m_dataMemorySize) {
|
|
|
|
while (offset < m_dataMemorySize) {
|
|
|
|
m_socket->readBlock(recData.data()+offset, 1024);
|
|
|
|
m_socket->readBlock(recData.data()+offset, 1024);
|
|
|
|
offset = offset + 1024;
|
|
|
|
offset = offset + 1024;
|
|
|
|
m_base->dataProcessingProgressBar->setProgress((m_dataMemorySize*2) + offset);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
m_base->dataProcessingStatusLabel->setText(i18n("Writing data to file") + "...");
|
|
|
|
m_base->dataProcessingStatusLabel->setText(i18n("Writing data to file") + "...");
|
|
|
@ -1657,6 +1656,12 @@ void FPGAViewPart::updateDisplay() {
|
|
|
|
POLL_FOR_DATA_IMMEDIATE
|
|
|
|
POLL_FOR_DATA_IMMEDIATE
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
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()) {
|
|
|
|
if (!m_timeoutTimer->isActive()) {
|
|
|
|
m_dataOutputFile->flush();
|
|
|
|
m_dataOutputFile->flush();
|
|
|
|
m_dataOutputFile->close();
|
|
|
|
m_dataOutputFile->close();
|
|
|
|