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:
|
||||
# Autotest succeeded; proceed to post-autotest actions
|
||||
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":
|
||||
Users.logout()
|
||||
self.main_window.open_login()
|
||||
|
|
|
|||
|
|
@ -233,6 +233,7 @@ class Test_Leak(Test_Test):
|
|||
self.components[self.tester_component].stop_test()
|
||||
self.components[self.tester_component].pause()
|
||||
self.disconnect(self.get_connection)
|
||||
if self.step.step_type == "test_freefall_leak":
|
||||
self.set_digital_out("first_output", 0) # Set low when test stops
|
||||
super().stop()
|
||||
self.start_b.setEnabled(False)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user