Beispiel #1
0
        public void interpret()
        {
            string data_rx = "";// data from COM

            while (connected)
            {
                try {
                    data_rx = myPort.ReadLine();

                    delLogUpdate updator = new delLogUpdate(form.addLog);

                    this.logBox.BeginInvoke(updator, data_rx);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                    connected = false;
                    delUpdateInfo("ERROR: COM Disconnect");
                }
            }
        }
Beispiel #2
0
        public void interpret()
        {
            string data_rx = "";// data from COM
            while (connected)
            {
                try {
                    data_rx = myPort.ReadLine();

                    delLogUpdate updator = new delLogUpdate(form.addLog);

                    this.logBox.BeginInvoke(updator, data_rx);

                }
                catch(Exception e)
                {
                    Console.WriteLine(e.Message);
                    connected = false;
                    delUpdateInfo("ERROR: COM Disconnect");
                }
            }
        }