Ejemplo n.º 1
0
        static void singleRead2()
        {
            reader.Start();
            DSForm = new FormRealTime(TagNames);
            Application.Run(DSForm);
            // Start reading.

            //Thread.Sleep(31000); //收集31s数据
            // Wait for the user to press enter.
            //Console.WriteLine("Press enter to exit.");
            //Console.ReadLine();

            // Stop reading.
            reader.Stop();

            applicactionClose();
        }