예제 #1
0
파일: Control.cs 프로젝트: radtek/INCC6
        public static string SuccinctDAQProcessingStatus(object o)
        {
            string s = String.Empty;

            if (o != null)
            {
                string ss = string.Empty;
                if (o is DAQControl)
                {
                    DAQControl d = (DAQControl)o;
                    ss = d.SuccinctInstrStatusString(Instruments.Active.FirstActive());
                }
                else if (o is Measurement)
                {
                    Measurement m = (Measurement)o;
                    ss = DAQControl.MeasStatusString(m);
                }
                s += ss;
            }
            return(s);
        }
예제 #2
0
파일: Control.cs 프로젝트: radtek/INCC6
        public static string LoggableDAQProcessingStatus(EventType EH, LMLoggers.LognLM log, LogLevels lvl, object o)
        {
            string s = String.Empty;

            if (o != null)
            {
                string ss = string.Empty;
                if (o is DAQControl)
                {
                    DAQControl d = (DAQControl)o;
                    ss = d.InstrStatusString(Instruments.Active.FirstActive(), true);
                }
                else if (o is Measurement)
                {
                    Measurement m = (Measurement)o;
                    ss = DAQControl.MeasStatusString(m);
                }
                s += ss;
            }
            log.TraceEvent(lvl, DAQControl.logid[EH], s);
            return(s);  // just in case it could be of further use
        }