Example #1
0
        public AnalysisDefs.Measurement Measurement;            // just a virtual pointer, not a frozen snapshot, be careful using this during proessing, the root of all that is good and evil


        // system snapshot only
        public MeasurementStatus()
        {
            // system operational state is already on NC.App.Opstate, this makes a copy
            action  = NC.App.Opstate.Action;
            opstate = NC.App.Opstate.SOH;
            start   = NC.App.Opstate.start;

            switch (NC.App.Opstate.Action)
            {
            case NCCAction.Nothing:
            case NCCAction.Prompt:
            case NCCAction.Maintenance:
            case NCCAction.Analysis:
                // nothing more right now
                break;

            case NCCAction.Discover:
            case NCCAction.HVCalibration:
            case NCCAction.Assay:
                if (NC.App.Opstate is LMDAQ.DAQControl.AssayState)
                {
                    LMDAQ.DAQControl.AssayState a = LMDAQ.DAQControl.CurState;
                    State = a.State;
                }
                CurrentRepetition    = NC.App.Opstate.Measurement.CurrentRepetition;
                RequestedRepetitions = NC.App.Opstate.Measurement.RequestedRepetitions;
                break;
            }
        }
Example #2
0
 public Instrument()
 {
     id       = new DataSourceIdentifier();
     daqstate = DAQInstrState.Online;
     selected = true;
     id.dt    = System.DateTime.Now;
 }
Example #3
0
        public AnalysisDefs.Measurement Measurement; // just a virtual pointer, not a frozen snapshot, be careful using this during proessing, the root of all that is good and evil


        // system snapshot only
        public MeasurementStatus()
        {
            // system operational state is already on NC.App.Opstate, this makes a copy
            action = NC.App.Opstate.Action;
            opstate = NC.App.Opstate.SOH;
            start = NC.App.Opstate.start;

            switch (NC.App.Opstate.Action)
            {
                case NCCAction.Nothing:
                case NCCAction.Prompt:
                case NCCAction.Maintenance:
                case NCCAction.Analysis:
                    // nothing more right now
                    break;
                case NCCAction.Discover:
                case NCCAction.HVCalibration:
                case NCCAction.Assay:
                    if (NC.App.Opstate is LMDAQ.DAQControl.AssayState)
                    {
                        LMDAQ.DAQControl.AssayState a = LMDAQ.DAQControl.CurState;
                        State = a.State;
                    }
                    CurrentRepetition = NC.App.Opstate.Measurement.CurrentRepetition;
                    RequestedRepetitions = NC.App.Opstate.Measurement.RequestedRepetitions;
                    break;
            }
        }