diff --git a/User_Interface.py b/User_Interface.py index 6b2aa7e..b60490f 100644 --- a/User_Interface.py +++ b/User_Interface.py @@ -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 diff --git a/csv_threading.py b/csv_threading.py index 0c9b25d..cda0a42 100644 --- a/csv_threading.py +++ b/csv_threading.py @@ -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