Ejemplo n.º 1
0
        private void ReadCurPointData()
        {
            string[] dat = null;
            dat = comm.ReadDMDats(dm250, 4);

            if (dat != null && dat.Length == 4)
            {
                x1Pos.Text = dat[0];
                x2Pos.Text = dat[1];
                yPos.Text  = dat[2];
                curRead[0] = Convert.ToSingle(dat[0]);
                curRead[1] = Convert.ToSingle(dat[1]);
                curRead[2] = Convert.ToSingle(dat[2]);
                curRead[3] = 0f;

                if (Product.CurProduct == Product.ProductEnum.Product001)
                {
                    z1Pos.Text = dat[3];
                    curRead[3] = Convert.ToSingle(dat[3]);
                }
            }
        }