Frequency domain¶
-
class
cued_datalogger.analysis.frequency_domain.
FrequencyDomainWidget
(parent=None)¶ Bases:
cued_datalogger.api.pyqtgraph_extensions.InteractivePlotWidget
The FrequencyDomainWidget is the main display widget for everything in the frequency domain.
Attributes
channels (list of Channel) The currently selected channel objects current_plot_type (str) Any of ‘linear magnitude’, ‘log magnitude’, ‘phase’, ‘real part’, ‘imaginary part’, ‘nyquist’. The current type of plot that is displayed. show_coherence (bool) If True, coherence is also plotted on the axes. Methods
-
calculate_spectrum
()¶ Calculate the frequency spectrum of all the selected channels.
-
calculate_transfer_function
(input_channel=None)¶ Calculate the transfer function, using the channel object given by input_channel as the input. If no channel specified, treat the first selected channel as input.
-
set_plot_type
(plot_type)¶ Set what type of plot is displayed. plot_type can be any of ‘linear magnitude’, ‘log magnitude’, ‘phase’, ‘real part’, ‘imaginary part’, ‘nyquist’.
-
set_selected_channels
(selected_channels)¶ Update which channels are plotted. Sets self.channels to selected_channels.
-
set_show_coherence
(show_coherence)¶ Set whether the coherence is displayed.
-
update_plot
(plot_transfer_function=False)¶ If plot_transfer_function, plot the transfer function. Otherwise, plot the spectrum.
-
-
class
cued_datalogger.analysis.frequency_domain.
FrequencyToolbox
(parent=None)¶ Bases:
cued_datalogger.api.toolbox.Toolbox
Toolbox containing the Frequency Domain controls.
Methods