Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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
        }