function createSS() {
        if(formData.getData().inputStyle !== 0) {
            return;
        }
        formData.reset();
        formData.getData().param.offSwitch = false;
        formData.getData().param.randomized = false;
        formData.getData().param.rcOrientation = 1;
        formData.getData().param.time = 1;
        var experiment = $scope.addExperiment();
        experiment.pairing = "add";
        experiment.samples = 1;
        experiment.startTime = "0";
        experiment.replicates = 1;

        //Creates the waveforms by converting the steady state data to multiple constant functions which add together
        var ssData = formData.getSteadyTable().getData();
        for(var c = 0; c < ssData[0].length; c++) {
            var ints = [];
            for(var r = 0; r < ssData.length; r++){
                //If well is deselected do not write a value to the intensity array for it
                var deselected = formData.getData().device.deselected[r];
                if(typeof deselected === 'undefined' || !deselected) {
                    ints.push(ssData[r][c]);
                }
            }
            var waveform = experiment.addWaveform("const");
            waveform.ints = ints.join(", ");
            waveform.wavelengthIndex = c.toString();
        }

    }
//Sets the data in formData to represent the current entry in the steady state table
Sets the data in formData to represent the current entry in the steady state table
Sets the data in formData to represent the current entry in the steady state table
function createSS() {
        if(formData.getData().inputStyle !== 0) {
            return;
        }
        formData.reset();
        formData.getData().param.offSwitch = false;
        formData.getData().param.randomized = false;
        formData.getData().param.rcOrientation = 1;
        formData.getData().param.time = 1;
        var experiment = $scope.addExperiment();
        experiment.pairing = "add";
        experiment.samples = 1;
        experiment.startTime = "0";
        experiment.replicates = 1;
        var ssData = formData.getSteadyTable().getData();
        for(var c = 0; c < ssData[0].length; c++) {
            var ints = [];
            for(var r = 0; r < ssData.length; r++){
                var deselected = formData.getData().device.deselected[r];
                if(typeof deselected === 'undefined' || !deselected) {
                    ints.push(ssData[r][c]);
                }
            }
            var waveform = experiment.addWaveform("const");
            waveform.ints = ints.join(", ");
            waveform.wavelengthIndex = c.toString();
        }
    }
function createSS ( ) { if ( formData . getData ( ) . inputStyle !== 0 ) { return ; } formData . reset ( ) ; formData . getData ( ) . param . offSwitch = false ; formData . getData ( ) . param . randomized = false ; formData . getData ( ) . param . rcOrientation = 1 ; formData . getData ( ) . param . time = 1 ; var experiment = $scope . addExperiment ( ) ; experiment . pairing = "add" ; experiment . samples = 1 ; experiment . startTime = "0" ; experiment . replicates = 1 ; var ssData = formData . getSteadyTable ( ) . getData ( ) ; for ( var c = 0 ; c < ssData [ 0 ] . length ; c ++ ) { var ints = [ ] ; for ( var r = 0 ; r < ssData . length ; r ++ ) { var deselected = formData . getData ( ) . device . deselected [ r ] ; if ( typeof deselected === 'undefined' || ! deselected ) { ints . push ( ssData [ r ] [ c ] ) ; } } var waveform = experiment . addWaveform ( "const" ) ; waveform . ints = ints . join ( ", " ) ; waveform . wavelengthIndex = c . toString ( ) ; } }
Sets the data in formData to represent the current entry in the steady state table
Sets the data in formData to represent the current entry in the steady state table
//Creates the waveforms by converting the steady state data to multiple constant functions which add together //If well is deselected do not write a value to the intensity array for it