code: def run(self):
          
          self.aotask.StartTask()
          self.aotask.wait() # don't return until generation finished
          self.aotask.stop()
          self.aotask = None
docs: Executes the stimulus generation, and returns when completed