function updateDisplay () {
        //If the devices have been loaded display the device menu
        if(!$scope.devicesLoaded){
            $scope.display.deviceSelection = 'none';
        }
        else {
            $scope.display.deviceSelection = 'block';
        }
        //If a device has been selected display the run parameters and experiment
        if($scope.getDevice()===undefined || $scope.getDevice().name=="default") {
            $scope.display.runVariables = 'none';
            $scope.display.stateVariables = 'none';
        }
        else {
            $scope.display.runVariables = 'block';
            $scope.display.stateVariables = 'block';
        }
        //Check if device is selected and if an experiment is added, then toggle on the download button
        if($scope.getDevice()!==undefined && $scope.getDevice().name!="default" && formData.getData().experiments.length>0 && formData.isValid()){
            $scope.display.download = 'block';
        }
        else {
            $scope.display.download = 'none';
        }
    }
//Updates the current display state of the form
Updates the current display state of the form
Updates the current display state of the form
function updateDisplay () {
        if(!$scope.devicesLoaded){
            $scope.display.deviceSelection = 'none';
        }
        else {
            $scope.display.deviceSelection = 'block';
        }
        if($scope.getDevice()===undefined || $scope.getDevice().name=="default") {
            $scope.display.runVariables = 'none';
            $scope.display.stateVariables = 'none';
        }
        else {
            $scope.display.runVariables = 'block';
            $scope.display.stateVariables = 'block';
        }
        if($scope.getDevice()!==undefined && $scope.getDevice().name!="default" && formData.getData().experiments.length>0 && formData.isValid()){
            $scope.display.download = 'block';
        }
        else {
            $scope.display.download = 'none';
        }
    }
function updateDisplay ( ) { if ( ! $scope . devicesLoaded ) { $scope . display . deviceSelection = 'none' ; } else { $scope . display . deviceSelection = 'block' ; } if ( $scope . getDevice ( ) === undefined || $scope . getDevice ( ) . name == "default" ) { $scope . display . runVariables = 'none' ; $scope . display . stateVariables = 'none' ; } else { $scope . display . runVariables = 'block' ; $scope . display . stateVariables = 'block' ; } if ( $scope . getDevice ( ) !== undefined && $scope . getDevice ( ) . name != "default" && formData . getData ( ) . experiments . length > 0 && formData . isValid ( ) ) { $scope . display . download = 'block' ; } else { $scope . display . download = 'none' ; } }
Updates the current display state of the form
Updates the current display state of the form
//If the devices have been loaded display the device menu //If a device has been selected display the run parameters and experiment //Check if device is selected and if an experiment is added, then toggle on the download button