Interactive Qt logger window for acquisition, analysis and plotting.
The main GUI entry point (exposed as dvma.Logger). Opening a
Logger starts a live oscilloscope and provides controls to record,
analyse (FFT / transfer function / sonogram) and plot, all backed by
a datastructure.DataSet.
Parameters:
-
settings
(MySettings, default:
None
)
–
Acquisition configuration. If
None, the GUI opens with its own defaults.
-
test_name
(str, default:
None
)
–
Default label applied to logged data.
-
default_window
(str, default:
None
)
–
Initial FFT/TF window choice
(e.g. 'hann'); None means a rectangular window.
-
output_signal_settings
(Output_Signal_Settings, default:
None
)
–
Pre-fills the "Generate output" panel — waveform type,
amplitude and the two frequencies. Defaults to output off
(type='None'). See options.Output_Signal_Settings.
-
dataset
(DataSet, default:
None
)
–
Start from an existing dataset
instead of an empty one — e.g. to add measurements to data
you have already loaded.
Examples:
>>> oss = dvma.Output_Signal_Settings(type='sweep', amp=0.5,
... f1=20, f2=2000)
>>> logger = dvma.Logger(settings, output_signal_settings=oss)
Attributes
settings
instance-attribute
test_name
instance-attribute
dataset
instance-attribute
default_window
instance-attribute
default_window = default_window
current_view
instance-attribute
N_frames
instance-attribute
overlap
instance-attribute
iw_fft_power
instance-attribute
iw_tf_power
instance-attribute
legend_loc
instance-attribute
legend_loc = 'lower right'
show_coherence
instance-attribute
show_data
instance-attribute
coherence_plot_type
instance-attribute
coherence_plot_type = 'linear'
xlinlog
instance-attribute
plot_type
instance-attribute
freq_range
instance-attribute
auto_xy
instance-attribute
channels
instance-attribute
last_action
instance-attribute
iw_power
instance-attribute
selected_channels
instance-attribute
flag_scaling
instance-attribute
message_time
instance-attribute
flag_log_and_replace
instance-attribute
flag_log_and_replace = False
flag_output
instance-attribute
message_timer
instance-attribute
stream_check_timer
instance-attribute
stream_check_timer = QTimer()
levels_timer
instance-attribute
message
instance-attribute
t0_clipped
instance-attribute
fn_in_range
instance-attribute
fn_in_range = np.array([])
output_signal_settings
instance-attribute
output_signal_settings = options.Output_Signal_Settings(type='None', amp=0, f1=0, f2=0)
window
instance-attribute
Methods:
__init__
__init__(settings=None, test_name=None, default_window=None, output_signal_settings=None, dataset=None)
setup_frame_plot_details
setup_frame_plot_details()
setup_frame_tools_selection()
setup_frame_tools_time_domain
setup_frame_tools_time_domain()
setup_frame_tools_scaling()
setup_frame_tools_mode_fitting()
setup_frame_tools_settings()
setup_frame_tools_generate_output()
setup_frame_tools_edit_dataset()
setup_frame_tools_sonogram()
setup_frame_tools_save_export()
show_message
show_message(message, b='ok')
button_clicked_log_data()
update_modal_message
update_modal_message(axes)
update_selected_channels
update_selected_channels(_)
update_co_axes_values
update_co_axes_values(axes)
switch_view
switch_view(new_view_text)
show_plot_details_with_coherence
show_plot_details_with_coherence()
show_plot_details_with_nqyuist
show_plot_details_with_nqyuist()
show_plot_details_basic
show_plot_details_basic()
view_modal_reconstruction
view_modal_reconstruction()
refresh_sono_N_frames_slider
refresh_sono_N_frames_slider()
refresh_sono_N_frames_text
refresh_sono_N_frames_text()