analogdevicesinc / iio-oscilloscope

A GTK+ based oscilloscope application for interfacing with various IIO devices

Home Page:https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spectrum Analyzer - Unknown Window Function Error

vijaysukumarannair opened this issue · comments

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

Error: The window_function of oscplot.c throws "unknown window function" as error.

Root Cause:
File: oscplot.c
Function: update_transform_settings
Code: For plot_type == SPECTRUM_PLOT, settings->fft_win is not updated.

Fix:
File: oscplot.c
Function: update_transform_settings
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));

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

Screenshot 2021-03-16 at 11 28 20 PM