/// <summary>
        /// 模拟数据采集 后面删除
        /// </summary>
        //public async void Read()
        //{
        //    OxyPlot.Series.LineSeries lineSeries = new OxyPlot.Series.LineSeries()
        //    {
        //        Color = OxyColor.FromRgb(255, 0, 0),
        //        StrokeThickness = 1,
        //        TrackerFormatString = "{0}\n{1}: {2:0.#}mm\n{3}: {4:0.##}Mpa",
        //    };
        //    MyModel2.Series.Clear();
        //    MyModel2.Series.Add(lineSeries);
        //    await Task.Run(() =>
        //    {
        //       while (IsWorking1)
        //       {
        //            lineSeries.Points.Clear();
        //            int i = 180;
        //            while (IsReading)
        //            {
        //                // PublishEvent();//联机状态消息发布
        //                Thread.Sleep(50);
        //                int value = (int)Math.Round(new Random().Next(10, 15) + (1 * new Random().NextDouble()), 2);
        //                float value2 = new Random().Next(10);
        //                i++;
        //                var temppoint = new DataPoint(i, value2);
        //                lineSeries.Points.Add(temppoint);
        //                MyModel2.InvalidatePlot(true);
        //                if (i > 350) IsReading = false;
        //                MyModel1.InvalidatePlot(true);//曲线刷新
        //            }

        //            IsReading = true;
        //            Thread.Sleep(1000);
        //        }
        //    });
        //}

        /// <summary>
        /// 工作台1工作
        /// </summary>
        public async void Read1()
        {
            await Task.Run(() =>
            {
                while (true)
                {
                    //此处后续添加按钮使能判断
                    if (ReadValue.Read1())//读成功
                    {
                        DataTreating1();
                    }
                }
            });
        }