예제 #1
0
 public static void testReader()
 {
     MyOutputAdapter adapter = new MyOutputAdapter();
     MyHistorianReader historianReader = new MyHistorianReader("127.0.0.1", "38401", "6175", "PPA");
     //historianReader.Query("2012-03-16 05:00:00.0", "2012-03-17 15:00:50.0", 1000);
     historianReader.Query("2012-03-30 13:00:00.0", "2012-03-30 14:00:10.0", 1000);
     //historianReader.Query("2012-03-15 21:00:00.0", "2012-03-15 23:01:00.0", 1000);
 }
예제 #2
0
        public static void testReadAll()
        {
            MyOutputAdapter adapter = new MyOutputAdapter();
            MyHistorianReader historianReader = new MyHistorianReader("127.0.0.1", "38401", "6175", "PPA");
            foreach (var v in adapter.measurementMap.Values)
            {
                ulong pointID = (ulong)v;
                //ulong unit = Convert.ToUInt64(Regex.Match(k, "Unit(\\d+)-.*").Groups[1].Value);
                if (pointID <= 1209)
                {
                    Console.WriteLine(pointID);
                    historianReader.Query("2012-03-15 21:00:00.0", "2012-03-15 21:01:00.0", pointID);
                }

            }
        }