Started implementation of safety feature for broadband measurements.

This commit is contained in:
jupfi 2023-12-15 17:54:17 +01:00
parent 5b40f4bb72
commit 6ea67c7f45
2 changed files with 33 additions and 3 deletions

View file

@ -192,6 +192,26 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<widget class="QSpinBox" name="minMatchBox">
<property name="minimum">
<number>-60</number>
</property>
<property name="maximum">
<number>0</number>
</property>
<property name="value">
<number>-12</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="minMatchingActive">
<property name="text">
<string>Minimum Matching (dB)</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>
@ -236,7 +256,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>271</width> <width>271</width>
<height>677</height> <height>639</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">

View file

@ -1,4 +1,4 @@
# Form implementation generated from reading ui file '../Modules/nqrduck-broadband/src/nqrduck_broadband/resources/broadband_widget.ui' # Form implementation generated from reading ui file 'Modules/nqrduck-broadband/src/nqrduck_broadband/resources/broadband_widget.ui'
# #
# Created by: PyQt6 UI code generator 6.5.1 # Created by: PyQt6 UI code generator 6.5.1
# #
@ -109,6 +109,15 @@ class Ui_Form(object):
self.activeLUTLabel = QtWidgets.QLabel(parent=Form) self.activeLUTLabel = QtWidgets.QLabel(parent=Form)
self.activeLUTLabel.setObjectName("activeLUTLabel") self.activeLUTLabel.setObjectName("activeLUTLabel")
self.gridLayout.addWidget(self.activeLUTLabel, 0, 1, 1, 1) self.gridLayout.addWidget(self.activeLUTLabel, 0, 1, 1, 1)
self.minMatchBox = QtWidgets.QSpinBox(parent=Form)
self.minMatchBox.setMinimum(-60)
self.minMatchBox.setMaximum(0)
self.minMatchBox.setProperty("value", -12)
self.minMatchBox.setObjectName("minMatchBox")
self.gridLayout.addWidget(self.minMatchBox, 1, 1, 1, 1)
self.minMatchingActive = QtWidgets.QCheckBox(parent=Form)
self.minMatchingActive.setObjectName("minMatchingActive")
self.gridLayout.addWidget(self.minMatchingActive, 1, 0, 1, 1)
self.verticalLayout_3.addLayout(self.gridLayout) self.verticalLayout_3.addLayout(self.gridLayout)
self.deleteLUTButton = QtWidgets.QPushButton(parent=Form) self.deleteLUTButton = QtWidgets.QPushButton(parent=Form)
self.deleteLUTButton.setObjectName("deleteLUTButton") self.deleteLUTButton.setObjectName("deleteLUTButton")
@ -130,7 +139,7 @@ class Ui_Form(object):
self.infoBox.setWidgetResizable(True) self.infoBox.setWidgetResizable(True)
self.infoBox.setObjectName("infoBox") self.infoBox.setObjectName("infoBox")
self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents = QtWidgets.QWidget()
self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 271, 677)) self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 271, 639))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
@ -196,6 +205,7 @@ class Ui_Form(object):
self.label_10.setText(_translate("Form", "Sequence Settings:")) self.label_10.setText(_translate("Form", "Sequence Settings:"))
self.label_11.setText(_translate("Form", "Active LUT:")) self.label_11.setText(_translate("Form", "Active LUT:"))
self.activeLUTLabel.setText(_translate("Form", "None")) self.activeLUTLabel.setText(_translate("Form", "None"))
self.minMatchingActive.setText(_translate("Form", "Minimum Matching (dB)"))
self.deleteLUTButton.setText(_translate("Form", "Delete LUT")) self.deleteLUTButton.setText(_translate("Form", "Delete LUT"))
self.label_9.setText(_translate("Form", "Info Box:")) self.label_9.setText(_translate("Form", "Info Box:"))
from nqrduck.contrib.mplwidget import MplWidget from nqrduck.contrib.mplwidget import MplWidget