重构UCD模块
This commit is contained in:
@@ -218,7 +218,7 @@ def show_custom_result_context_menu(self: "PQAutomationApp", event):
|
||||
can_single_step = (
|
||||
has_selection
|
||||
and self.ca is not None
|
||||
and self.ucd is not None
|
||||
and self.signal_service.is_connected
|
||||
and not self.testing
|
||||
)
|
||||
try:
|
||||
@@ -259,7 +259,7 @@ def start_custom_row_single_step(self: "PQAutomationApp"):
|
||||
if not hasattr(self, "custom_result_tree"):
|
||||
return
|
||||
|
||||
if self.ca is None or self.ucd is None:
|
||||
if self.ca is None or not self.signal_service.is_connected:
|
||||
messagebox.showerror("错误", "请先连接CA410和信号发生器")
|
||||
return
|
||||
|
||||
@@ -570,7 +570,7 @@ def append_custom_template_result(self: "PQAutomationApp", row_no, result_data):
|
||||
def start_custom_template_test(self: "PQAutomationApp"):
|
||||
"""开始客户模板测试(SDR)"""
|
||||
|
||||
if self.ca is None or self.ucd is None:
|
||||
if self.ca is None or not self.signal_service.is_connected:
|
||||
messagebox.showerror("错误", "请先连接CA410和信号发生器")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user