summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2017-07-29 04:29:01 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2017-07-29 04:29:01 -0500
commita08c8fe35d42ff5dceec1149460a23758edeede0 (patch)
treef197b8e9a736f0146e1bb1fd80868ab533091f50
parent964f9570c0a9de3453fff1bb86ff097f97686af7 (diff)
downloadulab-a08c8fe35d42ff5dceec1149460a23758edeede0.tar.gz
ulab-a08c8fe35d42ff5dceec1149460a23758edeede0.zip
Fix math traces failing after normal scope updates randomly set current destination trace
-rw-r--r--clients/tde/src/part/scope/part.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/clients/tde/src/part/scope/part.cpp b/clients/tde/src/part/scope/part.cpp
index 274480a..52cae83 100644
--- a/clients/tde/src/part/scope/part.cpp
+++ b/clients/tde/src/part/scope/part.cpp
@@ -2679,10 +2679,10 @@ void ScopePart::processMathTraces() {
}
}
- m_traceWidget->setSamples(m_maxNumberOfTraces-1+m_currentOpChannel, outputValues);
- m_traceWidget->setPositions(m_maxNumberOfTraces-1+m_currentOpChannel, outputPositions);
- m_base->traceZoomWidget->setSamples(m_maxNumberOfTraces-1+m_currentOpChannel, outputValues);
- m_base->traceZoomWidget->setPositions(m_maxNumberOfTraces-1+m_currentOpChannel, outputPositions);
+ m_traceWidget->setSamples(m_maxNumberOfTraces-1+traceno, outputValues);
+ m_traceWidget->setPositions(m_maxNumberOfTraces-1+traceno, outputPositions);
+ m_base->traceZoomWidget->setSamples(m_maxNumberOfTraces-1+traceno, outputValues);
+ m_base->traceZoomWidget->setPositions(m_maxNumberOfTraces-1+traceno, outputPositions);
}
#ifdef ENABLE_FFT
else if (m_mathOperator[traceno] == "FFT") {
@@ -2750,10 +2750,10 @@ void ScopePart::processMathTraces() {
free(ffts_input);
free(ffts_output);
- m_traceWidget->setSamples(m_maxNumberOfTraces-1+m_currentOpChannel, outputValues);
- m_traceWidget->setPositions(m_maxNumberOfTraces-1+m_currentOpChannel, outputPositions);
- m_base->traceZoomWidget->setSamples(m_maxNumberOfTraces-1+m_currentOpChannel, outputValues);
- m_base->traceZoomWidget->setPositions(m_maxNumberOfTraces-1+m_currentOpChannel, outputPositions);
+ m_traceWidget->setSamples(m_maxNumberOfTraces-1+traceno, outputValues);
+ m_traceWidget->setPositions(m_maxNumberOfTraces-1+traceno, outputPositions);
+ m_base->traceZoomWidget->setSamples(m_maxNumberOfTraces-1+traceno, outputValues);
+ m_base->traceZoomWidget->setPositions(m_maxNumberOfTraces-1+traceno, outputPositions);
}
#endif // ENABLE_FFT
else {
@@ -2764,10 +2764,10 @@ void ScopePart::processMathTraces() {
outputValues[i] = 0;
}
- m_traceWidget->setSamples(m_maxNumberOfTraces-1+m_currentOpChannel, outputValues);
- m_traceWidget->setPositions(m_maxNumberOfTraces-1+m_currentOpChannel, outputPositions);
- m_base->traceZoomWidget->setSamples(m_maxNumberOfTraces-1+m_currentOpChannel, outputValues);
- m_base->traceZoomWidget->setPositions(m_maxNumberOfTraces-1+m_currentOpChannel, outputPositions);
+ m_traceWidget->setSamples(m_maxNumberOfTraces-1+traceno, outputValues);
+ m_traceWidget->setPositions(m_maxNumberOfTraces-1+traceno, outputPositions);
+ m_base->traceZoomWidget->setSamples(m_maxNumberOfTraces-1+traceno, outputValues);
+ m_base->traceZoomWidget->setPositions(m_maxNumberOfTraces-1+traceno, outputPositions);
}
}
}