analogdevicesinc / iio-oscilloscope

A GTK+ based oscilloscope application for interfacing with various IIO devices
https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope
GNU General Public License v2.0
250 stars 142 forks source link

Spectrum Analyzer - Unknown Window Function Error #315

Open vijaysukumarannair opened 3 years ago

vijaysukumarannair commented 3 years ago

Issue: The spectrum plot window does not show any signal when spectrum analysers "start sweep" button is clicked.

Error: _The windowfunction of oscplot.c throws "unknown window function" as error.

Root Cause:
File: oscplot.c Function: _update_transformsettings Code: _For plot_type == SPECTRUM_PLOT, settings->fftwin is not updated.

Fix: File: oscplot.c Function: _update_transformsettings Add below line within the condition block "else if (plot_type == SPECTRUM_PLOT)" FREQ_SPECTRUM_SETTINGS(transform)->fft_win = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(priv->fft_win_widget));

vijaysukumarannair commented 3 years ago

Fix to be added: The highlighted line in the image to be added in code.

Screenshot 2021-03-16 at 11 28 20 PM