View/Trap/mainWindow.py
def start_timer(self):
        """Starts the timer with a predefined update interval.
        It also starts the monitor routine.
        """
        if not self.running:
            if self.powerSpectra.is_running:
                print('Cant update while power spectra is running.')
            else:
                conditions = {}
                # Starts the timer for updating the GUI
                conditions['devs'] = self.devices
                conditions['accuracy'] = self._session.monitorTimeresol/1000 # In seconds
                self.trap.startMonitor(conditions)
                self.ctimer.start(self._session.monitorRefresh)

                self.running = True
        else:
            self.stop_timer()
Starts the timer with a predefined update interval.
        It also starts the monitor routine.
        
Starts the timer with a predefined update interval.
It also starts the monitor routine.
Starts the timer with a predefined update interval . It also starts the monitor routine .
def start_timer(self):
        if not self.running:
            if self.powerSpectra.is_running:
                print('Cant update while power spectra is running.')
            else:
                conditions = {}
                conditions['devs'] = self.devices
                conditions['accuracy'] = self._session.monitorTimeresol/1000 
                self.trap.startMonitor(conditions)
                self.ctimer.start(self._session.monitorRefresh)
                self.running = True
        else:
            self.stop_timer()
def start_timer ( self ) : if not self . running : if self . powerSpectra . is_running : print ( 'Cant update while power spectra is running.' ) else : conditions = { } conditions [ 'devs' ] = self . devices conditions [ 'accuracy' ] = self . _session . monitorTimeresol / 1000 self . trap . startMonitor ( conditions ) self . ctimer . start ( self . _session . monitorRefresh ) self . running = True else : self . stop_timer ( )
Starts the timer with a predefined update interval.
Starts the timer with a predefined update interval .
"""Starts the timer with a predefined update interval.
        It also starts the monitor routine.
        """ # Starts the timer for updating the GUI # In seconds
self