nqrduck_autotm.view#

Classes

AutoTMView(*args, **kwargs)

class nqrduck_autotm.view.AutoTMView(*args: Any, **kwargs: Any)#
class CalibrationWindow(*args: Any, **kwargs: Any)#
on_apply_button_clicked() None#

This method is called when the apply button is clicked.

on_calibration_finished(type: str, widget: MplWidget, data: S11Data) None#

This method is called when a calibration has finished. It plots the calibration data on the given widget.

on_import_button_clicked() None#

This method is called when the import button is clicked.

class LoadingSpinner(*args: Any, **kwargs: Any)#

This class implements a spinner dialog that is shown during a frequency sweep.

class LutWindow(*args: Any, **kwargs: Any)#
test_lut()#

This method is called when the Test LUT button is clicked. It sets all of the voltages from the lut with a small delay. One can then view the matching on a seperate VNA.

class StepperSavedPositionsWindow(*args: Any, **kwargs: Any)#
class NewPositionWindow(*args: Any, **kwargs: Any)#
on_apply_button_clicked(frequency: str, tuning_position: str, matching_position: str) None#

This method is called when the apply button is clicked.

file_selector(mode) str#

Opens a file selector and returns the selected file.

on_load_position_button_clicked() None#

File picker for loading a position from a file.

on_new_position_button_clicked() None#

Opens a new position dialog.

on_save_position_button_clicked() None#

File picker for saving a position to a file.

on_saved_positions_changed() None#

This method is called when the saved positions changed. It updates the table widget.

add_error_text(text: str) None#

Adds text to the error text box.

Parameters:

text (str) – Text to add to the error text box.

add_info_text(text: str) None#

Adds text to the info text box.

Parameters:

text (str) – Text to add to the info text box.

create_el_LUT_spinner_dialog() None#

Creates a electrical LUT spinner dialog.

create_frequency_sweep_spinner_dialog() None#

Creates a frequency sweep spinner dialog.

create_mech_LUT_spinner_dialog() None#

Creates a mechanical LUT spinner dialog.

init_labels() None#

Makes some of the labels bold for better readability.

init_plot() None#

Initialize the S11 plot.

on_active_stepper_changed() None#

Update the stepper position label according to the current stepper position.

on_available_devices_changed(available_devices: list) None#

Update the available devices list in the view.

on_calibration_button_clicked() None#

This method is called when the calibration button is clicked. It opens the calibration window.

on_connect_button_clicked() None#

This method is called when the connect button is clicked. It calls the connect method of the controller with the currently selected device.

on_export_button_clicked() None#

Slot for when the export button is clicked.

on_import_button_clicked() None#

Slot for when the import button is clicked.

on_position_button_clicked() None#

This method is called when the position button is clicked. It opens the position window.

on_serial_changed(serial: PyQt6.QtSerialPort.QSerialPort) None#

Update the serial ‘connectionLabel’ according to the current serial connection.

Args: serial (serial.Serial): The current serial connection.

on_stepper_changed()#

Update the stepper position label according to the current stepper position.

plot_measurement(data: S11Data) None#

Update the S11 plot with the current data points.

Parameters:

data_points (list) – List of data points to plot.

@TODO: implement proper calibration. See the controller class for more information.

view_el_lut() None#

Creates a new Dialog that shows the currently active electrical LUT.

view_mech_lut() None#

Creates a new Dialog that shows the currently active mechanical LUT.