update leak test logic: add conditional digital output for freefall leak tests and post-autotest warning popup
This commit is contained in:
parent
0af7ddc515
commit
214725a90d
|
|
@ -535,6 +535,9 @@ class Test(Widget):
|
||||||
else:
|
else:
|
||||||
# Autotest succeeded; proceed to post-autotest actions
|
# Autotest succeeded; proceed to post-autotest actions
|
||||||
self.autotesting = False
|
self.autotesting = False
|
||||||
|
# MOSTRA IL POPUP RICHIESTO ALLA FINE DELL'AUTOTEST
|
||||||
|
QMessageBox.information(self, "Avviso",
|
||||||
|
"ATTENZIONE ,SCOLLEGARE IL TUBO-TUBO PRIMA DI INIZIARE A COLLAUDARE")
|
||||||
if self.autotesting_reason == "logout":
|
if self.autotesting_reason == "logout":
|
||||||
Users.logout()
|
Users.logout()
|
||||||
self.main_window.open_login()
|
self.main_window.open_login()
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,8 @@ class Test_Leak(Test_Test):
|
||||||
self.components[self.tester_component].stop_test()
|
self.components[self.tester_component].stop_test()
|
||||||
self.components[self.tester_component].pause()
|
self.components[self.tester_component].pause()
|
||||||
self.disconnect(self.get_connection)
|
self.disconnect(self.get_connection)
|
||||||
self.set_digital_out("first_output", 0) # Set low when test stops
|
if self.step.step_type == "test_freefall_leak":
|
||||||
|
self.set_digital_out("first_output", 0) # Set low when test stops
|
||||||
super().stop()
|
super().stop()
|
||||||
self.start_b.setEnabled(False)
|
self.start_b.setEnabled(False)
|
||||||
self.stop_b.setEnabled(False)
|
self.stop_b.setEnabled(False)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user