def METHOD_NAME(self):
    while(True):
        start_time = datetime.now()
        # Send update signal
        self.gui.update_gui()
        # Wait for acknowldege signal
        self.ack_event.wait()
        self.ack_event.clear()
        finish_time = datetime.now()
        self.iteration_counter = self.iteration_counter + 1
        dt = finish_time - start_time
        ms = (dt.days * 24 * 60 * 60 + dt.seconds) * 1000 + dt.microseconds / 1000.0
        time_cycle = self.time_cycle.get()
        if(ms < time_cycle):
            time.sleep((time_cycle-ms) / 1000.0)
    self.exit_signal.set()