With current firmware, these JNCRadio_VNA_3G, SV4401A, SV6301A devices allow 1001 datapoints.

Updated datapoints dropdown to show their respective minimums, the 'typical' 101, device default 501 and maximum 1001 points. Users may choose any other values between min and max not seen in the dropdown list using the custom datapoints option.

These devices now use the factory default 501 datapoints as their initial datapoints value.
pull/662/head
Thomas de Lellis 2023-07-22 00:57:03 +02:00
rodzic 21ba0ef665
commit 975c4bc773
4 zmienionych plików z 11 dodań i 8 usunięć

Wyświetl plik

@ -31,8 +31,9 @@ class JNCRadio_VNA_3G(NanoVNA):
name = "JNCRadio_VNA_3G"
screenwidth = 800
screenheight = 480
valid_datapoints = (101, 201, 301, 401, 501)
sweep_points_max = 501
valid_datapoints = (501, 11, 101, 1001)
sweep_points_max = 11
sweep_points_max = 1001
def __init__(self, iface: Interface):
super().__init__(iface)
@ -40,6 +41,7 @@ class JNCRadio_VNA_3G(NanoVNA):
def getScreenshot(self) -> QPixmap:
logger.debug("Capturing screenshot...")
self.serial.timeout=8
if not self.connected():
return QPixmap()
try:

Wyświetl plik

@ -31,9 +31,9 @@ class SV4401A(NanoVNA):
name = "SV4401A"
screenwidth = 1024
screenheight = 600
valid_datapoints = (101, 301, 501)
sweep_points_max = 101
sweep_points_max = 501
valid_datapoints = (501, 101, 1001)
sweep_points_min = 101
sweep_points_max = 1001
def __init__(self, iface: Interface):
super().__init__(iface)

Wyświetl plik

@ -31,9 +31,9 @@ class SV6301A(NanoVNA):
name = "SV6301A"
screenwidth = 1024
screenheight = 600
valid_datapoints = (101, 301, 501)
sweep_points_max = 101
sweep_points_max = 501
valid_datapoints = (501, 101, 1001)
sweep_points_min = 101
sweep_points_max = 1001
def __init__(self, iface: Interface):
super().__init__(iface)

Wyświetl plik

@ -152,6 +152,7 @@ class DeviceSettingsWindow(QtWidgets.QWidget):
if "Customizable data points" in features:
self.datapoints.clear()
self.custom_points_Eidt.setValidator(QIntValidator(self.app.vna.sweep_points_min,self.app.vna.sweep_points_max))
cur_dps = self.app.vna.datapoints
for d in sorted(self.app.vna.valid_datapoints):
self.datapoints.addItem(str(d))