forked from zietzm/Helmholtz_Test_Bench
fixed issue
Status Display update was attempted after window close, resulting in error messages from connected device
This commit is contained in:
+2
-3
@@ -961,9 +961,8 @@ class StatusDisplay(Frame):
|
||||
self.update_labels()
|
||||
|
||||
def continuous_label_update(self, controller, interval): # update display values in regular intervals (ms)
|
||||
self.update_labels()
|
||||
if g.app is not None: # app ist still running
|
||||
# ToDo (optional): prevent call after program close
|
||||
if not g.exitFlag: # app ist still running
|
||||
self.update_labels()
|
||||
controller.after(interval, lambda: self.continuous_label_update(controller, interval))
|
||||
|
||||
def update_labels(self): # update all values in the status display
|
||||
|
||||
+3
-1
@@ -37,7 +37,9 @@ class ExecCSVThread(Thread):
|
||||
def stopped(self):
|
||||
return self.__stop_event.is_set()
|
||||
|
||||
def execute_sequence(self, array, delay, parent, controller): # runs through array containing times and desired field vectors
|
||||
def execute_sequence(self, array, delay, parent, controller):
|
||||
# runs through array with times and desired fields and commands test stand accordingly
|
||||
|
||||
# array format: [time (s), xField (T), yField (T), zField (T)]
|
||||
# decimal commas
|
||||
# all times in seconds
|
||||
|
||||
Reference in New Issue
Block a user