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