Ejemplo n.º 1
0
        /// <summary>
        /// 获取测点最新值
        /// </summary>
        /// <param name="points"></param>
        /// <returns></returns>
        public double[] GetPointVal(string[] points)
        {
            double[] val = new double[points.Length];
            double   v   = 0;
            RTDBLink dll = new RTDBLink();

            dll.OpenPi();

            for (int i = 0; i < points.Length; i++)
            {
                v      = dll.GetRealTimeValue(points[i]);
                v      = getDouble(v, 2);
                val[i] = v;
            }
            //Plink.closePi();
            return(val);
        }