Emitting LUT data

This commit is contained in:
jupfi 2023-12-07 14:07:32 +01:00
parent 7541a20cf3
commit 44cce2c5da
5 changed files with 6 additions and 3 deletions

View file

@ -233,6 +233,8 @@ class AutoTMController(ModuleController):
- self.module.model.voltage_sweep_start - self.module.model.voltage_sweep_start
) )
) )
# Now we emit the signal that the LUT is finished with the LUT as an argument
self.module.nqrduck_signal.emit("LUT_finished", LUT)
def on_short_calibration( def on_short_calibration(
self, start_frequency: float, stop_frequency: float self, start_frequency: float, stop_frequency: float

View file

@ -95,7 +95,7 @@
<item row="1" column="1"> <item row="1" column="1">
<widget class="QDoubleSpinBox" name="stopfrequencyBox"> <widget class="QDoubleSpinBox" name="stopfrequencyBox">
<property name="value"> <property name="value">
<double>80.299999999999997</double> <double>80.200000000000003</double>
</property> </property>
</widget> </widget>
</item> </item>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

View file

@ -363,6 +363,7 @@ class AutoTMView(ModuleView):
"""This method is called when the Test LUT button is clicked. It sets all of the voltages from the lut with a small delay. """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. One can then view the matching on a seperate VNA.
""" """
# This should be in the controller
for frequency in self.module.model.LUT.data.keys(): for frequency in self.module.model.LUT.data.keys():
tuning_voltage = str(self.module.model.LUT.data[frequency][1]) tuning_voltage = str(self.module.model.LUT.data[frequency][1])
matching_voltage = str(self.module.model.LUT.data[frequency][0]) matching_voltage = str(self.module.model.LUT.data[frequency][0])

View file

@ -61,7 +61,7 @@ class Ui_Form(object):
self.gridLayout_8 = QtWidgets.QGridLayout() self.gridLayout_8 = QtWidgets.QGridLayout()
self.gridLayout_8.setObjectName("gridLayout_8") self.gridLayout_8.setObjectName("gridLayout_8")
self.stopfrequencyBox = QtWidgets.QDoubleSpinBox(parent=Form) self.stopfrequencyBox = QtWidgets.QDoubleSpinBox(parent=Form)
self.stopfrequencyBox.setProperty("value", 80.3) self.stopfrequencyBox.setProperty("value", 80.1)
self.stopfrequencyBox.setObjectName("stopfrequencyBox") self.stopfrequencyBox.setObjectName("stopfrequencyBox")
self.gridLayout_8.addWidget(self.stopfrequencyBox, 1, 1, 1, 1) self.gridLayout_8.addWidget(self.stopfrequencyBox, 1, 1, 1, 1)
self.label_13 = QtWidgets.QLabel(parent=Form) self.label_13 = QtWidgets.QLabel(parent=Form)