Open NanoExplorer opened 9 months ago
This could be the problem. In the function below, the x axis scale is only updated if the force
parameter is true or the sample rate has changed. In my case I was probably triggering this function with the same sample rate and without force
. https://github.com/analogdevicesinc/scopy/blob/d23b5e22fbdb5ab62e5e1aaefd90e8dcff5b9d94/src/oscilloscope.cpp#L2935-L2945
The function is probably being called from here: https://github.com/analogdevicesinc/scopy/blob/d23b5e22fbdb5ab62e5e1aaefd90e8dcff5b9d94/src/oscilloscope.cpp#L3002
I might see if I can try getting the source code to compile so I can change this and test it.
Environment:
Describe the bug When viewing the oscilloscope with FFT selected, changing the time configuration or memory depth for the oscilloscope display affects the FFT panel in strange and unexpected ways.
To Reproduce Steps to reproduce the behavior:
Expected behavior FFT panel should not be this dependent on probe settings. Of course there will be issues such as aliasing at extreme probe settings, but here that is not the case.
Screenshots Figure 1: 60 Hz wave with FFT showing peaks at 60 Hz and its harmonics.
Figure 2: 60 Hz wave with FFT showing no peaks at 60 Hz or its odd harmonics.
Figure 3: 60 Hz wave with high memory depth and FFT showing only noise.
Additional context ini file: https://gist.github.com/NanoExplorer/dfbb60c1112eb3026c9360ec92be52fb Sometimes the expected spectrum shows for a couple times after changing the time base, but it eventually goes back to the behavior I describe after a couple more changes. Or other strange things will happen, such as the primary harmonic becoming 15 Hz or 30 Hz depending on time base. Using the spectrum analyzer clearly shows no signal at these 15 Hz harmonics, but does show peaks at 60 Hz and its harmonics.