summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2019-03-01 00:52:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2019-03-01 00:52:02 -0600
commit97e25a6c741cc8ff4882114904d9558892825315 (patch)
tree681abfeed670eacec1658ed60ffb69b4c1d371b9
parentcfa07a982ddc08418be36784165c4b672eae9742 (diff)
downloadulab-97e25a6c741cc8ff4882114904d9558892825315.tar.gz
ulab-97e25a6c741cc8ff4882114904d9558892825315.zip
Add additional volts/div steps to integration math trace
This makes integration more useful, as the integrator can wind up quickly with DC biased signals
-rw-r--r--clients/tde/src/part/scope/part.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clients/tde/src/part/scope/part.cpp b/clients/tde/src/part/scope/part.cpp
index ab9c2d0..1995e85 100644
--- a/clients/tde/src/part/scope/part.cpp
+++ b/clients/tde/src/part/scope/part.cpp
@@ -2594,6 +2594,17 @@ void ScopePart::updateMathTraceAllowedVoltsPerDivList(int traceno) {
}
}
qHeapSort(m_mathTraceAllowedVoltsDiv[traceno]);
+ if ((m_mathTraceAllowedVoltsDiv[traceno].count() > 0)
+ && (m_mathOperator[traceno] == "Integral")) {
+ // Append a handful of larger volt/div settings
+ int vdiv = m_mathTraceAllowedVoltsDiv[traceno][m_mathTraceAllowedVoltsDiv[traceno].count()-1];
+ vdiv *= 10;
+ m_mathTraceAllowedVoltsDiv[traceno].append(vdiv);
+ vdiv *= 10;
+ m_mathTraceAllowedVoltsDiv[traceno].append(vdiv);
+ vdiv *= 10;
+ m_mathTraceAllowedVoltsDiv[traceno].append(vdiv);
+ }
// Reset GUI if not set (e.g. after startup)
if ((m_mathVoltsDiv[traceno] == 0) && (m_mathTraceAllowedVoltsDiv[traceno].count() > 0)) {