Exemple #1
0
    def execute_stack():
        """
        :return: True for successful execution.

        Parallel execution of pending commands on the SSC32U board.
        """
        try:
            Controller.execute_stack()
            return True
        except:
            print("Executing stack failed!")
            raise
Exemple #2
0
    def validate_results(feedback_list, method):
        """
        :param feedback_list: List of booleans corresponding to the return value of a method.
        :param method: Method name, i.e initialize.
        :return: True if all booleans in feedback_list are True.

        Validates results of executed method and executes stack.
        """
        if False not in feedback_list:
            Controller.execute_stack()
            print('JohnnyV: ' + method + ' was successful.')
            return True
        else:
            print('JohnnyV: ' + method +
                  ' failed. Commands could not be written to SSC board.')
            return False