Halts both the analog output and input tasks

def stop_all(self):
        """Halts both the analog output and input tasks"""
        if self.aotask is not None:
            self.aotask.stop()
        self.aitask.stop()
        self.daq_lock.release()
        self.aitask = None
        self.aotask = None