Example #1
0
        //
        // cStatus = 0,0,2,500,506,2500,200,0 as of Dec 2010 rev HW
        public void SplitCStatusResponse(string received, ref LMDAQ.LMInstrStatus st)
        {
            try
            {
                string[] text = received.Split('=');
                string[] sval = text[1].Split(',');

                // debug/verbose on the box, not the app
                bool state;
                if (Convert.ToInt32(sval[0]) == 1)
                {
                    state = true;
                }
                else
                {
                    state = false;
                }
                st.debug = state;

                // input path
                st.inputPath = Convert.ToInt32(sval[1]);  // 0 or 1

                // led output state
                st.leds = Convert.ToInt32(sval[2]);  // 0 or 2

                // hv setpoint
                st.setpoint = Convert.ToInt32(sval[3]);

                // hv
                st.hv = Convert.ToInt32(sval[4]);

                // LLD max
                st.MaxLLD = Convert.ToInt32(sval[5]);
                // LLD mv
                st.LLD = Convert.ToInt32(sval[6]);
                // u3 ????
                st.u1 = Convert.ToInt32(sval[7]);
            }
            catch (Exception e)
            {
                commlog.TraceEvent(LogLevels.Error, 890, "SplitCStatusResponse barfed on:" + received + "; " + e.Message);
            }
        }
Example #2
0
 public void SplitCStatusResponse(string received, ref LMDAQ.LMInstrStatus st)
 {
     cmdprocessor.SplitCStatusResponse(received, ref st);
 }