Update slightly faster

master
Timothy Pearson 13 years ago
parent 11d6b6dded
commit 35e842f0c5

@ -572,6 +572,14 @@ void CommAnalyzerPart::mainEventLoop() {
m_socket->clearFrameTail(); m_socket->clearFrameTail();
if (result == "ACK") { if (result == "ACK") {
#if 1
// Trace grap is slow on most instruments
// Put in the next trace request before processing the trace we just got so as to increase the overall update rate
// Get trace, step 1
ds << TQString("GETSPECTRUMTRACE");
m_socket->writeEndOfFrame();
#endif
// Update display widget(s) // Update display widget(s)
m_traceWidget->setSamples(0, trace); m_traceWidget->setSamples(0, trace);
m_base->traceZoomWidget->setSamples(0, trace); m_base->traceZoomWidget->setSamples(0, trace);
@ -580,10 +588,16 @@ void CommAnalyzerPart::mainEventLoop() {
m_base->traceZoomWidget->repaint(true); m_base->traceZoomWidget->repaint(true);
} }
if (result == "ACK") { if (result == "ACK") {
#if 0
//SET_NEXT_STATE(2) //SET_NEXT_STATE(2)
SET_NEXT_STATE(18) SET_NEXT_STATE(18)
EXEC_NEXT_STATE_IMMEDIATELY EXEC_NEXT_STATE_IMMEDIATELY
#else
SET_NEXT_STATE(19)
EXEC_NEXT_STATE_IMMEDIATELY
#endif
} }
else { else {
COMMUNICATIONS_FAILED COMMUNICATIONS_FAILED

Loading…
Cancel
Save