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
master
Timothy Pearson 6 years ago
parent cfa07a982d
commit 97e25a6c74

@ -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)) {

Loading…
Cancel
Save