Executes the stimulus generation, and returns when completed

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