Additional debug output for point numbers
This commit is contained in:
parent
71b095cf2e
commit
f688aaa220
@ -413,6 +413,11 @@ using namespace std;
|
|||||||
|
|
||||||
void SpectrumAnalyzer::NewDatapoint(Protocol::SpectrumAnalyzerResult d)
|
void SpectrumAnalyzer::NewDatapoint(Protocol::SpectrumAnalyzerResult d)
|
||||||
{
|
{
|
||||||
|
if(d.pointNum >= settings.pointNum) {
|
||||||
|
qWarning() << "Ignoring point with too large point number (" << d.pointNum << ")";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
d = average.process(d);
|
d = average.process(d);
|
||||||
|
|
||||||
if(normalize.measuring) {
|
if(normalize.measuring) {
|
||||||
@ -451,6 +456,11 @@ void SpectrumAnalyzer::NewDatapoint(Protocol::SpectrumAnalyzerResult d)
|
|||||||
UpdateAverageCount();
|
UpdateAverageCount();
|
||||||
markerModel->updateMarkers();
|
markerModel->updateMarkers();
|
||||||
}
|
}
|
||||||
|
static unsigned int lastPoint = 0;
|
||||||
|
if(d.pointNum > 0 && d.pointNum != lastPoint + 1) {
|
||||||
|
qWarning() << "Got point" << d.pointNum << "but last received point was" << lastPoint << "("<<(d.pointNum-lastPoint-1)<<"missed points)";
|
||||||
|
}
|
||||||
|
lastPoint = d.pointNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpectrumAnalyzer::SettingsChanged()
|
void SpectrumAnalyzer::SettingsChanged()
|
||||||
|
@ -760,6 +760,11 @@ using namespace std;
|
|||||||
|
|
||||||
void VNA::NewDatapoint(Protocol::Datapoint d)
|
void VNA::NewDatapoint(Protocol::Datapoint d)
|
||||||
{
|
{
|
||||||
|
if(d.pointNum >= settings.npoints) {
|
||||||
|
qWarning() << "Ignoring point with too large point number (" << d.pointNum << ")";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
d = average.process(d);
|
d = average.process(d);
|
||||||
if(calMeasuring) {
|
if(calMeasuring) {
|
||||||
if(average.currentSweep() == averages) {
|
if(average.currentSweep() == averages) {
|
||||||
|
Loading…
Reference in New Issue
Block a user