// double limitation = 1200;

        void NetSyn_Mydata(DataStruct msg)
        {
            //double currentutilization = Math.Round((msg.ber) / limitation * 100, 2);
            utilization.Content = 15.72;//currentutilization;
            myTrUtilizationGauge.Value = 15.72;
            myTrUtilizationGauge.ToolTipText = 15.72 + "%";//currentutilization + "%";
        }
        void NetSyn_Mydata(DataStruct msg)
        {
            //int packagenumber = msg.trafficRate;//*******************

            if (msg.cpudet == 1)
            {
                trafficRate_odd = msg.trafficRate;
            }
            else
            {
                trafficRate_even = msg.trafficRate;
            }

            packagenumber = trafficRate_even + trafficRate_odd;

            double rate = packagenumber * 448.0 * 8.0 * 1000000.0 / 7 / 600.0 / 1024 / 1024 / 1024; //该公式待修改。**************************

            currentRate.Content = ((int)(rate * 1000)) / 1000.0;                                    //待修改~~等待数据过来完全无问题后可用于直接显示吞吐量。
            CurRate.Text        = "The Last One Minute Throughput (一分钟内的吞吐量)       Cur(当前速率):" + ((int)(rate * 1000)) / 1000.0 + "Gbps";
            DataPoint dataPoint = new DataPoint();

            dataPoint.YValue = rate;
            Realtime.DataPoints.Add(dataPoint);
            while (Realtime.DataPoints.Count > numbertoshow)
            {
                Realtime.DataPoints.Remove(Realtime.DataPoints[0]);
            }
        }
 public void DataNotify(byte[] buffer)
 {
     message = (DataStruct)BytesToStruct(buffer, message.GetType());
     if (Mydata != null)
         Mydata(message);
     if (CheckedYes != null)
         CheckedYes();
 }
 void NetSyn_Mydata(DataStruct msg)
 {
     int packagenumber = msg.trafficRate;
     double rate = packagenumber * 472.0 * 8.0 / 5000.0;
     DataPoint dataPoint = new DataPoint();
     dataPoint.YValue = rate;
     FullFigure.DataPoints.Add(dataPoint);
 }
Example #5
0
        void NetSyn_Mydata(DataStruct msg)
        {
            int       packagenumber = msg.trafficRate;
            double    rate          = packagenumber * 472.0 * 8.0 / 5000.0;
            DataPoint dataPoint     = new DataPoint();

            dataPoint.YValue = rate;
            FullFigure.DataPoints.Add(dataPoint);
        }
 public void DataNotify(byte[] buffer)
 {
     message = (DataStruct)BytesToStruct(buffer, message.GetType());
     if (Mydata != null)
     {
         Mydata(message);
     }
     if (CheckedYes != null)
     {
         CheckedYes();
     }
 }
Example #7
0
        void NetSyn_Mydata(DataStruct msg)
        {
            number++;
            numberOfPoints.Content = number;
            int    packagenumber = msg.trafficRate;
            double rate          = packagenumber * 448.0 * 8.0 * 1000000.0 / 7 / 600.0 / 1024 / 1024;

            if (rate <= 200)
            {
                lessthan2.YValue++;
            }
            if (rate > 200 && rate <= 400)
            {
                between24.YValue++;
            }
            if (rate > 400 && rate <= 600)
            {
                between46.YValue++;
            }
            if (rate > 600 && rate <= 800)
            {
                between68.YValue++;
            }
            if (rate > 4800 && rate <= 900)
            {
                between89.YValue++;
            }
            if (rate > 900 && rate <= 1000)
            {
                between910.YValue++;
            }
            if (rate > 1000 && rate <= 1100)
            {
                between1011.YValue++;
            }
            if (rate > 1100)
            {
                morethan11.YValue++;
            }
        }
        void NetSyn_Mydata(DataStruct msg)
        {
            //int packagenumber = msg.trafficRate;//*******************

            if (msg.cpudet == 1)
                trafficRate_odd = msg.trafficRate;
            else
                trafficRate_even = msg.trafficRate;

            packagenumber = trafficRate_even + trafficRate_odd;

            double rate = packagenumber * 448.0 * 8.0 * 1000000.0 / 7 / 600.0 / 1024 / 1024 / 1024;//该公式待修改。**************************
            currentRate.Content = ((int)(rate*1000))/1000.0;//待修改~~等待数据过来完全无问题后可用于直接显示吞吐量。
			CurRate.Text = "The Last One Minute Throughput (一分钟内的吞吐量)       Cur(当前速率):" + ((int)(rate*1000))/1000.0 + "Gbps";
            DataPoint dataPoint = new DataPoint();
            dataPoint.YValue = rate;
            Realtime.DataPoints.Add(dataPoint);
            while (Realtime.DataPoints.Count > numbertoshow)
            {
                Realtime.DataPoints.Remove(Realtime.DataPoints[0]);
            }
        }
 void NetSyn_Mydata(DataStruct msg)
 {
     number++;
     numberOfPoints.Content = number;
     int packagenumber = msg.trafficRate;
     double rate = packagenumber *448.0 * 8.0 * 1000000.0 / 7 / 600.0 / 1024 / 1024;
     if (rate <= 200)
         lessthan2.YValue++;
     if (rate > 200 && rate <= 400)
         between24.YValue++;
     if (rate > 400 && rate <= 600)
         between46.YValue++;
     if (rate > 600 && rate <= 800)
         between68.YValue++;
     if (rate > 4800 && rate <= 900)
         between89.YValue++;
     if (rate > 900 && rate <= 1000)
         between910.YValue++;
     if (rate > 1000 && rate <= 1100)
         between1011.YValue++;
     if (rate > 1100)
         morethan11.YValue++;
 }
        void NetSyn_Mydata(DataStruct msg)
        {
            DataPoint dp1 = new DataPoint();
            DataPoint dp2 = new DataPoint();
            DataPoint dp3 = new DataPoint();
            DataPoint dp4 = new DataPoint();
            DataPoint dp5 = new DataPoint();
            DataPoint dp6 = new DataPoint();
            DataPoint dp7 = new DataPoint();
            DataPoint dp8 = new DataPoint();
            DataPoint dp9 = new DataPoint();
            DataPoint dp10 = new DataPoint();
            DataPoint dp11 = new DataPoint();
            DataPoint dp12 = new DataPoint();
            DataPoint dp13 = new DataPoint();
            DataPoint dp14 = new DataPoint();
            DataPoint dp15 = new DataPoint();
            DataPoint dp16 = new DataPoint();
            DataPoint dp17 = new DataPoint();
            DataPoint dp18 = new DataPoint();
            DataPoint dp19 = new DataPoint();
            DataPoint dp20 = new DataPoint();
            DataPoint dp21 = new DataPoint();
            DataPoint dp22 = new DataPoint();
            DataPoint dp23 = new DataPoint();
            DataPoint dp24 = new DataPoint();
            DataPoint dp25 = new DataPoint();
            DataPoint dp26 = new DataPoint();
            DataPoint dp27 = new DataPoint();
            DataPoint dp28 = new DataPoint();
            DataPoint dp29 = new DataPoint();
            DataPoint dp30 = new DataPoint();
            DataPoint dp31 = new DataPoint();
            DataPoint dp32 = new DataPoint();
            DataPoint dp33 = new DataPoint();
            DataPoint dp34 = new DataPoint();
            DataPoint dp35 = new DataPoint();
            DataPoint dp36 = new DataPoint();
            DataPoint dp37 = new DataPoint();
            DataPoint dp38 = new DataPoint();
            DataPoint dp39 = new DataPoint();
            DataPoint dp40 = new DataPoint();
            DataPoint dp41 = new DataPoint();
            DataPoint dp42 = new DataPoint();
            DataPoint dp43 = new DataPoint();
            DataPoint dp44 = new DataPoint();
            DataPoint dp45 = new DataPoint();
            DataPoint dp46 = new DataPoint();
            DataPoint dp47 = new DataPoint();
            DataPoint dp48 = new DataPoint();
            DataPoint dp49 = new DataPoint();
            DataPoint dp50 = new DataPoint();
            DataPoint dp51 = new DataPoint();
            DataPoint dp52 = new DataPoint();
            DataPoint dp53 = new DataPoint();
            DataPoint dp54 = new DataPoint();
            DataPoint dp55 = new DataPoint();
            DataPoint dp56 = new DataPoint();
            DataPoint dp57 = new DataPoint();
            DataPoint dp58 = new DataPoint();
            DataPoint dp59 = new DataPoint();
            DataPoint dp60 = new DataPoint();
            DataPoint dp61 = new DataPoint();
            DataPoint dp62 = new DataPoint();
            DataPoint dp63 = new DataPoint();
            DataPoint dp64 = new DataPoint();
            DataPoint dp65 = new DataPoint();
            DataPoint dp66 = new DataPoint();
            DataPoint dp67 = new DataPoint();
            DataPoint dp68 = new DataPoint();
            DataPoint dp69 = new DataPoint();
            DataPoint dp70 = new DataPoint();
            DataPoint dp71 = new DataPoint();
            DataPoint dp72 = new DataPoint();
            DataPoint dp73 = new DataPoint();
            DataPoint dp74 = new DataPoint();
            DataPoint dp75 = new DataPoint();
            DataPoint dp76 = new DataPoint();
            DataPoint dp77 = new DataPoint();
            DataPoint dp78 = new DataPoint();
            DataPoint dp79 = new DataPoint();
            DataPoint dp80 = new DataPoint();
            DataPoint dp81 = new DataPoint();
            DataPoint dp82 = new DataPoint();
            DataPoint dp83 = new DataPoint();
            DataPoint dp84 = new DataPoint();
            DataPoint dp85 = new DataPoint();
            DataPoint dp86 = new DataPoint();
            DataPoint dp87 = new DataPoint();
            DataPoint dp88 = new DataPoint();
            DataPoint dp89 = new DataPoint();
            DataPoint dp90 = new DataPoint();
            DataPoint dp91 = new DataPoint();
            DataPoint dp92 = new DataPoint();
            DataPoint dp93 = new DataPoint();
            DataPoint dp94 = new DataPoint();
            DataPoint dp95 = new DataPoint();
            DataPoint dp96 = new DataPoint();
            DataPoint dp97 = new DataPoint();
            DataPoint dp98 = new DataPoint();
            DataPoint dp99 = new DataPoint();
            DataPoint dp100 = new DataPoint();
            DataPoint dp101 = new DataPoint();
            DataPoint dp102 = new DataPoint();
            DataPoint dp103 = new DataPoint();
            DataPoint dp104 = new DataPoint();
            DataPoint dp105 = new DataPoint();
            DataPoint dp106 = new DataPoint();
            DataPoint dp107 = new DataPoint();
            DataPoint dp108 = new DataPoint();
            DataPoint dp109 = new DataPoint();
            DataPoint dp110 = new DataPoint();
            DataPoint dp111 = new DataPoint();
            DataPoint dp112 = new DataPoint();
            DataPoint dp113 = new DataPoint();
            DataPoint dp114 = new DataPoint();
            DataPoint dp115 = new DataPoint();
            DataPoint dp116 = new DataPoint();
            DataPoint dp117 = new DataPoint();
            DataPoint dp118 = new DataPoint();
            DataPoint dp119 = new DataPoint();
            DataPoint dp120 = new DataPoint();
            DataPoint dp121 = new DataPoint();
            DataPoint dp122 = new DataPoint();
            DataPoint dp123 = new DataPoint();
            DataPoint dp124 = new DataPoint();
            DataPoint dp125 = new DataPoint();
            DataPoint dp126 = new DataPoint();
            DataPoint dp127 = new DataPoint();
            DataPoint dp128 = new DataPoint();
            DataPoint dp129 = new DataPoint();
            DataPoint dp130 = new DataPoint();
            DataPoint dp131 = new DataPoint();
            DataPoint dp132 = new DataPoint();
            DataPoint dp133 = new DataPoint();
            DataPoint dp134 = new DataPoint();
            DataPoint dp135 = new DataPoint();
            DataPoint dp136 = new DataPoint();
            DataPoint dp137 = new DataPoint();
            DataPoint dp138 = new DataPoint();
            DataPoint dp139 = new DataPoint();
            DataPoint dp140 = new DataPoint();
            DataPoint dp141 = new DataPoint();
            DataPoint dp142 = new DataPoint();
            DataPoint dp143 = new DataPoint();
            DataPoint dp144 = new DataPoint();
            DataPoint dp145 = new DataPoint();
            DataPoint dp146 = new DataPoint();
            DataPoint dp147 = new DataPoint();
            DataPoint dp148 = new DataPoint();
            DataPoint dp149 = new DataPoint();
            DataPoint dp150 = new DataPoint();
            DataPoint dp151 = new DataPoint();
            DataPoint dp152 = new DataPoint();
            DataPoint dp153 = new DataPoint();
            DataPoint dp154 = new DataPoint();
            DataPoint dp155 = new DataPoint();
            DataPoint dp156 = new DataPoint();
            DataPoint dp157 = new DataPoint();
            DataPoint dp158 = new DataPoint();
            DataPoint dp159 = new DataPoint();
            DataPoint dp160 = new DataPoint();

            //dp.XValue = msg.consteX;//(msg.ber-0.5)*2;***********后期需要更改数据源。
            //dp.YValue = msg.consteY;//(rnd.NextDouble()-0.5)*2

            dp1.XValue = Cons_X_data[plot_index];
            dp1.YValue = Cons_Y_data[plot_index];
            dp1.ZValue = 10000;
            dp1.FontSize = 100;
            if ((double)dp1.XValue < threshold && (double)dp1.YValue < threshold)
                myChart.DataPoints.Add(dp1);
            plot_index = plot_index + 1;
          
            dp2.XValue = Cons_X_data[plot_index+1];
            dp2.YValue = Cons_Y_data[plot_index+1];
            if ((double)dp2.XValue < threshold && (double)dp2.YValue < threshold)
                myChart.DataPoints.Add(dp2);
            dp2.ZValue = 1;
            dp1.FontSize = 1;
            plot_index = plot_index + 1;

            dp3.XValue = Cons_X_data[plot_index];
            dp3.YValue = Cons_Y_data[plot_index];
            if ((double)dp3.XValue < threshold && (double)dp3.YValue < threshold)
                myChart.DataPoints.Add(dp3);
            plot_index = plot_index + 1;

            dp4.XValue = Cons_X_data[plot_index];
            dp4.YValue = Cons_Y_data[plot_index];
            if ((double)dp4.XValue < threshold && (double)dp4.YValue < threshold)
                myChart.DataPoints.Add(dp4);
            plot_index = plot_index + 1;

            dp5.XValue = Cons_X_data[plot_index];
            dp5.YValue = Cons_Y_data[plot_index];
            if ((double)dp5.XValue < threshold && (double)dp5.YValue < threshold)
                myChart.DataPoints.Add(dp5);
            plot_index = plot_index + 1;

            dp6.XValue = Cons_X_data[plot_index];
            dp6.YValue = Cons_Y_data[plot_index];
            if ((double)dp6.XValue < threshold && (double)dp6.YValue < threshold)
                myChart.DataPoints.Add(dp6);
            plot_index = plot_index + 1;

            dp7.XValue = Cons_X_data[plot_index];
            dp7.YValue = Cons_Y_data[plot_index];
            if ((double)dp7.XValue < threshold && (double)dp7.YValue < threshold)
                myChart.DataPoints.Add(dp7);
            plot_index = plot_index + 1;

            dp8.XValue = Cons_X_data[plot_index];
            dp8.YValue = Cons_Y_data[plot_index];
            if ((double)dp8.XValue < threshold && (double)dp8.YValue < threshold)
                myChart.DataPoints.Add(dp8);
            plot_index = plot_index + 1;

            dp9.XValue = Cons_X_data[plot_index];
            dp9.YValue = Cons_Y_data[plot_index];
            if ((double)dp9.XValue < threshold && (double)dp9.YValue < threshold)
                myChart.DataPoints.Add(dp9);
            plot_index = plot_index + 1;

            dp10.XValue = Cons_X_data[plot_index];
            dp10.YValue = Cons_Y_data[plot_index];
            if ((double)dp10.XValue < threshold && (double)dp10.YValue < threshold)
                myChart.DataPoints.Add(dp10);
            plot_index = plot_index + 1;

            dp11.XValue = Cons_X_data[plot_index];
            dp11.YValue = Cons_Y_data[plot_index];
            if ((double)dp11.XValue < threshold && (double)dp11.YValue < threshold)
                myChart.DataPoints.Add(dp11);
            plot_index = plot_index + 1;

            dp12.XValue = Cons_X_data[plot_index];
            dp12.YValue = Cons_Y_data[plot_index];
            if ((double)dp12.XValue < threshold && (double)dp12.YValue < threshold)
                myChart.DataPoints.Add(dp12);
            plot_index = plot_index + 1;

            dp13.XValue = Cons_X_data[plot_index];
            dp13.YValue = Cons_Y_data[plot_index];
            if ((double)dp13.XValue < threshold && (double)dp13.YValue < threshold)
                myChart.DataPoints.Add(dp13);
            plot_index = plot_index + 1;

            dp14.XValue = Cons_X_data[plot_index];
            dp14.YValue = Cons_Y_data[plot_index];
            if ((double)dp14.XValue < threshold && (double)dp14.YValue < threshold)
                myChart.DataPoints.Add(dp14);
            plot_index = plot_index + 1;

            dp15.XValue = Cons_X_data[plot_index];
            dp15.YValue = Cons_Y_data[plot_index];
            if ((double)dp15.XValue < threshold && (double)dp15.YValue < threshold)
                myChart.DataPoints.Add(dp15);
            plot_index = plot_index + 1;

            dp16.XValue = Cons_X_data[plot_index];
            dp16.YValue = Cons_Y_data[plot_index];
            if ((double)dp16.XValue < threshold && (double)dp16.YValue < threshold)
                myChart.DataPoints.Add(dp16);
            plot_index = plot_index + 1;

            dp17.XValue = Cons_X_data[plot_index];
            dp17.YValue = Cons_Y_data[plot_index];
            if ((double)dp17.XValue < threshold && (double)dp17.YValue < threshold)
                myChart.DataPoints.Add(dp17);
            plot_index = plot_index + 1;

            dp18.XValue = Cons_X_data[plot_index];
            dp18.YValue = Cons_Y_data[plot_index];
            if ((double)dp18.XValue < threshold && (double)dp18.YValue < threshold)
                myChart.DataPoints.Add(dp18);
            plot_index = plot_index + 1;

            dp19.XValue = Cons_X_data[plot_index];
            dp19.YValue = Cons_Y_data[plot_index];
            if ((double)dp19.XValue < threshold && (double)dp19.YValue < threshold)
                myChart.DataPoints.Add(dp19);
            plot_index = plot_index + 1;

            dp20.XValue = Cons_X_data[plot_index];
            dp20.YValue = Cons_Y_data[plot_index];
            if ((double)dp20.XValue < threshold && (double)dp20.YValue < threshold)
                myChart.DataPoints.Add(dp20);
            plot_index = plot_index + 1;

            dp21.XValue = Cons_X_data[plot_index];
            dp21.YValue = Cons_Y_data[plot_index];
            if ((double)dp21.XValue < threshold && (double)dp21.YValue < threshold)
                myChart.DataPoints.Add(dp21);
            plot_index = plot_index + 1;

            dp22.XValue = Cons_X_data[plot_index];
            dp22.YValue = Cons_Y_data[plot_index];
            if ((double)dp22.XValue < threshold && (double)dp22.YValue < threshold)
                myChart.DataPoints.Add(dp22);
            plot_index = plot_index + 1;

            dp23.XValue = Cons_X_data[plot_index];
            dp23.YValue = Cons_Y_data[plot_index];
            if ((double)dp23.XValue < threshold && (double)dp23.YValue < threshold)
                myChart.DataPoints.Add(dp23);
            plot_index = plot_index + 1;

            dp24.XValue = Cons_X_data[plot_index];
            dp24.YValue = Cons_Y_data[plot_index];
            if ((double)dp24.XValue < threshold && (double)dp24.YValue < threshold)
                myChart.DataPoints.Add(dp24);
            plot_index = plot_index + 1;

            dp25.XValue = Cons_X_data[plot_index];
            dp25.YValue = Cons_Y_data[plot_index];
            if ((double)dp25.XValue < threshold && (double)dp25.YValue < threshold)
                myChart.DataPoints.Add(dp25);
            plot_index = plot_index + 1;

            dp26.XValue = Cons_X_data[plot_index];
            dp26.YValue = Cons_Y_data[plot_index];
            if ((double)dp26.XValue < threshold && (double)dp26.YValue < threshold)
                myChart.DataPoints.Add(dp26);
            plot_index = plot_index + 1;

            dp27.XValue = Cons_X_data[plot_index];
            dp27.YValue = Cons_Y_data[plot_index];
            if ((double)dp27.XValue < threshold && (double)dp27.YValue < threshold)
                myChart.DataPoints.Add(dp27);
            plot_index = plot_index + 1;

            dp28.XValue = Cons_X_data[plot_index];
            dp28.YValue = Cons_Y_data[plot_index];
            if ((double)dp28.XValue < threshold && (double)dp28.YValue < threshold)
                myChart.DataPoints.Add(dp28);
            plot_index = plot_index + 1;

            dp29.XValue = Cons_X_data[plot_index];
            dp29.YValue = Cons_Y_data[plot_index];
            if ((double)dp29.XValue < threshold && (double)dp29.YValue < threshold)
                myChart.DataPoints.Add(dp29);
            plot_index = plot_index + 1;

            dp30.XValue = Cons_X_data[plot_index];
            dp30.YValue = Cons_Y_data[plot_index];
            if ((double)dp30.XValue < threshold && (double)dp30.YValue < threshold)
                myChart.DataPoints.Add(dp30);
            plot_index = plot_index + 1;

            dp31.XValue = Cons_X_data[plot_index];
            dp31.YValue = Cons_Y_data[plot_index];
            if ((double)dp31.XValue < threshold && (double)dp31.YValue < threshold)
                myChart.DataPoints.Add(dp31);
            plot_index = plot_index + 1;

            dp32.XValue = Cons_X_data[plot_index];
            dp32.YValue = Cons_Y_data[plot_index];
            if ((double)dp32.XValue < threshold && (double)dp32.YValue < threshold)
                myChart.DataPoints.Add(dp32);
            plot_index = plot_index + 1;

            dp33.XValue = Cons_X_data[plot_index];
            dp33.YValue = Cons_Y_data[plot_index];
            if ((double)dp33.XValue < threshold && (double)dp33.YValue < threshold)
                myChart.DataPoints.Add(dp33);
            plot_index = plot_index + 1;

            dp34.XValue = Cons_X_data[plot_index];
            dp34.YValue = Cons_Y_data[plot_index];
            if ((double)dp34.XValue < threshold && (double)dp34.YValue < threshold)
                myChart.DataPoints.Add(dp34);
            plot_index = plot_index + 1;

            dp35.XValue = Cons_X_data[plot_index];
            dp35.YValue = Cons_Y_data[plot_index];
            if ((double)dp35.XValue < threshold && (double)dp35.YValue < threshold)
                myChart.DataPoints.Add(dp35);
            plot_index = plot_index + 1;

            dp36.XValue = Cons_X_data[plot_index];
            dp36.YValue = Cons_Y_data[plot_index];
            if ((double)dp36.XValue < threshold && (double)dp36.YValue < threshold)
                myChart.DataPoints.Add(dp36);
            plot_index = plot_index + 1;

            dp37.XValue = Cons_X_data[plot_index];
            dp37.YValue = Cons_Y_data[plot_index];
            if ((double)dp37.XValue < threshold && (double)dp37.YValue < threshold)
                myChart.DataPoints.Add(dp37);
            plot_index = plot_index + 1;

            dp38.XValue = Cons_X_data[plot_index];
            dp38.YValue = Cons_Y_data[plot_index];
            if ((double)dp38.XValue < threshold && (double)dp38.YValue < threshold)
                myChart.DataPoints.Add(dp38);
            plot_index = plot_index + 1;

            dp39.XValue = Cons_X_data[plot_index];
            dp39.YValue = Cons_Y_data[plot_index];
            if ((double)dp39.XValue < threshold && (double)dp39.YValue < threshold)
                myChart.DataPoints.Add(dp39);
            plot_index = plot_index + 1;

            dp40.XValue = Cons_X_data[plot_index];
            dp40.YValue = Cons_Y_data[plot_index];
            if ((double)dp40.XValue < threshold && (double)dp40.YValue < threshold)
                myChart.DataPoints.Add(dp40);
            plot_index = plot_index + 1;

            dp41.XValue = Cons_X_data[plot_index];
            dp41.YValue = Cons_Y_data[plot_index];
            if ((double)dp41.XValue < threshold && (double)dp41.YValue < threshold)
                myChart.DataPoints.Add(dp41);
            plot_index = plot_index + 1;

            dp42.XValue = Cons_X_data[plot_index];
            dp42.YValue = Cons_Y_data[plot_index];
            if ((double)dp42.XValue < threshold && (double)dp42.YValue < threshold)
                myChart.DataPoints.Add(dp42);
            plot_index = plot_index + 1;

            dp43.XValue = Cons_X_data[plot_index];
            dp43.YValue = Cons_Y_data[plot_index];
            if ((double)dp43.XValue < threshold && (double)dp43.YValue < threshold)
                myChart.DataPoints.Add(dp43);
            plot_index = plot_index + 1;

            dp44.XValue = Cons_X_data[plot_index];
            dp44.YValue = Cons_Y_data[plot_index];
            if ((double)dp44.XValue < threshold && (double)dp44.YValue < threshold)
                myChart.DataPoints.Add(dp44);
            plot_index = plot_index + 1;

            dp45.XValue = Cons_X_data[plot_index];
            dp45.YValue = Cons_Y_data[plot_index];
            if ((double)dp45.XValue < threshold && (double)dp45.YValue < threshold)
                myChart.DataPoints.Add(dp45);
            plot_index = plot_index + 1;

            dp46.XValue = Cons_X_data[plot_index];
            dp46.YValue = Cons_Y_data[plot_index];
            if ((double)dp46.XValue < threshold && (double)dp46.YValue < threshold)
                myChart.DataPoints.Add(dp46);
            plot_index = plot_index + 1;

            dp47.XValue = Cons_X_data[plot_index];
            dp47.YValue = Cons_Y_data[plot_index];
            if ((double)dp47.XValue < threshold && (double)dp47.YValue < threshold)
                myChart.DataPoints.Add(dp47);
            plot_index = plot_index + 1;

            dp48.XValue = Cons_X_data[plot_index];
            dp48.YValue = Cons_Y_data[plot_index];
            if ((double)dp48.XValue < threshold && (double)dp48.YValue < threshold)
                myChart.DataPoints.Add(dp48);
            plot_index = plot_index + 1;

            dp49.XValue = Cons_X_data[plot_index];
            dp49.YValue = Cons_Y_data[plot_index];
            if ((double)dp49.XValue < threshold && (double)dp49.YValue < threshold)
                myChart.DataPoints.Add(dp49);
            plot_index = plot_index + 1;

            dp50.XValue = Cons_X_data[plot_index];
            dp50.YValue = Cons_Y_data[plot_index];
            if ((double)dp50.XValue < threshold && (double)dp50.YValue < threshold)
                myChart.DataPoints.Add(dp50);
            plot_index = plot_index + 1;

            dp51.XValue = Cons_X_data[plot_index];
            dp51.YValue = Cons_Y_data[plot_index];
            if ((double)dp51.XValue < threshold && (double)dp51.YValue < threshold)
                myChart.DataPoints.Add(dp51);
            plot_index = plot_index + 1;

            dp52.XValue = Cons_X_data[plot_index];
            dp52.YValue = Cons_Y_data[plot_index];
            if ((double)dp52.XValue < threshold && (double)dp52.YValue < threshold)
                myChart.DataPoints.Add(dp52);
            plot_index = plot_index + 1;

            dp53.XValue = Cons_X_data[plot_index];
            dp53.YValue = Cons_Y_data[plot_index];
            if ((double)dp53.XValue < threshold && (double)dp53.YValue < threshold)
                myChart.DataPoints.Add(dp53);
            plot_index = plot_index + 1;

            dp54.XValue = Cons_X_data[plot_index];
            dp54.YValue = Cons_Y_data[plot_index];
            if ((double)dp54.XValue < threshold && (double)dp54.YValue < threshold)
                myChart.DataPoints.Add(dp54);
            plot_index = plot_index + 1;

            dp55.XValue = Cons_X_data[plot_index];
            dp55.YValue = Cons_Y_data[plot_index];
            if ((double)dp55.XValue < threshold && (double)dp55.YValue < threshold)
                myChart.DataPoints.Add(dp55);
            plot_index = plot_index + 1;

            dp56.XValue = Cons_X_data[plot_index];
            dp56.YValue = Cons_Y_data[plot_index];
            if ((double)dp56.XValue < threshold && (double)dp56.YValue < threshold)
                myChart.DataPoints.Add(dp56);
            plot_index = plot_index + 1;

            dp57.XValue = Cons_X_data[plot_index];
            dp57.YValue = Cons_Y_data[plot_index];
            if ((double)dp57.XValue < threshold && (double)dp57.YValue < threshold)
                myChart.DataPoints.Add(dp57);
            plot_index = plot_index + 1;

            dp58.XValue = Cons_X_data[plot_index];
            dp58.YValue = Cons_Y_data[plot_index];
            if ((double)dp58.XValue < threshold && (double)dp58.YValue < threshold)
                myChart.DataPoints.Add(dp58);
            plot_index = plot_index + 1;

            dp59.XValue = Cons_X_data[plot_index];
            dp59.YValue = Cons_Y_data[plot_index];
            if ((double)dp59.XValue < threshold && (double)dp59.YValue < threshold)
                myChart.DataPoints.Add(dp59);
            plot_index = plot_index + 1;

            dp60.XValue = Cons_X_data[plot_index];
            dp60.YValue = Cons_Y_data[plot_index];
            if ((double)dp60.XValue < threshold && (double)dp60.YValue < threshold)
                myChart.DataPoints.Add(dp60);
            plot_index = plot_index + 1;

            dp61.XValue = Cons_X_data[plot_index];
            dp61.YValue = Cons_Y_data[plot_index];
            if ((double)dp61.XValue < threshold && (double)dp61.YValue < threshold)
                myChart.DataPoints.Add(dp61);
            plot_index = plot_index + 1;

            dp62.XValue = Cons_X_data[plot_index];
            dp62.YValue = Cons_Y_data[plot_index];
            if ((double)dp62.XValue < threshold && (double)dp62.YValue < threshold)
                myChart.DataPoints.Add(dp62);
            plot_index = plot_index + 1;

            dp63.XValue = Cons_X_data[plot_index];
            dp63.YValue = Cons_Y_data[plot_index];
            if ((double)dp63.XValue < threshold && (double)dp63.YValue < threshold)
                myChart.DataPoints.Add(dp63);
            plot_index = plot_index + 1;

            dp64.XValue = Cons_X_data[plot_index];
            dp64.YValue = Cons_Y_data[plot_index];
            if ((double)dp64.XValue < threshold && (double)dp64.YValue < threshold)
                myChart.DataPoints.Add(dp64);
            plot_index = plot_index + 1;

            dp65.XValue = Cons_X_data[plot_index];
            dp65.YValue = Cons_Y_data[plot_index];
            if ((double)dp65.XValue < threshold && (double)dp65.YValue < threshold)
                myChart.DataPoints.Add(dp65);
            plot_index = plot_index + 1;

            dp66.XValue = Cons_X_data[plot_index];
            dp66.YValue = Cons_Y_data[plot_index];
            if ((double)dp66.XValue < threshold && (double)dp66.YValue < threshold)
                myChart.DataPoints.Add(dp66);
            plot_index = plot_index + 1;

            dp67.XValue = Cons_X_data[plot_index];
            dp67.YValue = Cons_Y_data[plot_index];
            if ((double)dp67.XValue < threshold && (double)dp67.YValue < threshold)
                myChart.DataPoints.Add(dp67);
            plot_index = plot_index + 1;

            dp68.XValue = Cons_X_data[plot_index];
            dp68.YValue = Cons_Y_data[plot_index];
            if ((double)dp68.XValue < threshold && (double)dp68.YValue < threshold)
                myChart.DataPoints.Add(dp68);
            plot_index = plot_index + 1;

            dp69.XValue = Cons_X_data[plot_index];
            dp69.YValue = Cons_Y_data[plot_index];
            if ((double)dp69.XValue < threshold && (double)dp69.YValue < threshold)
                myChart.DataPoints.Add(dp69);
            plot_index = plot_index + 1;

            dp70.XValue = Cons_X_data[plot_index];
            dp70.YValue = Cons_Y_data[plot_index];
            if ((double)dp70.XValue < threshold && (double)dp70.YValue < threshold)
                myChart.DataPoints.Add(dp70);
            plot_index = plot_index + 1;

            dp71.XValue = Cons_X_data[plot_index];
            dp71.YValue = Cons_Y_data[plot_index];
            if ((double)dp71.XValue < threshold && (double)dp71.YValue < threshold)
                myChart.DataPoints.Add(dp71);
            plot_index = plot_index + 1;

            dp72.XValue = Cons_X_data[plot_index];
            dp72.YValue = Cons_Y_data[plot_index];
            if ((double)dp72.XValue < threshold && (double)dp72.YValue < threshold)
                myChart.DataPoints.Add(dp72);
            plot_index = plot_index + 1;

            dp73.XValue = Cons_X_data[plot_index];
            dp73.YValue = Cons_Y_data[plot_index];
            if ((double)dp73.XValue < threshold && (double)dp73.YValue < threshold)
                myChart.DataPoints.Add(dp73);
            plot_index = plot_index + 1;

            dp74.XValue = Cons_X_data[plot_index];
            dp74.YValue = Cons_Y_data[plot_index];
            if ((double)dp74.XValue < threshold && (double)dp74.YValue < threshold)
                myChart.DataPoints.Add(dp74);
            plot_index = plot_index + 1;

            dp75.XValue = Cons_X_data[plot_index];
            dp75.YValue = Cons_Y_data[plot_index];
            if ((double)dp75.XValue < threshold && (double)dp75.YValue < threshold)
                myChart.DataPoints.Add(dp75);
            plot_index = plot_index + 1;

            dp76.XValue = Cons_X_data[plot_index];
            dp76.YValue = Cons_Y_data[plot_index];
            if ((double)dp76.XValue < threshold && (double)dp76.YValue < threshold)
                myChart.DataPoints.Add(dp76);
            plot_index = plot_index + 1;

            dp77.XValue = Cons_X_data[plot_index];
            dp77.YValue = Cons_Y_data[plot_index];
            if ((double)dp77.XValue < threshold && (double)dp77.YValue < threshold)
                myChart.DataPoints.Add(dp77);
            plot_index = plot_index + 1;

            dp78.XValue = Cons_X_data[plot_index];
            dp78.YValue = Cons_Y_data[plot_index];
            if ((double)dp78.XValue < threshold && (double)dp78.YValue < threshold)
                myChart.DataPoints.Add(dp78);
            plot_index = plot_index + 1;

            dp79.XValue = Cons_X_data[plot_index];
            dp79.YValue = Cons_Y_data[plot_index];
            if ((double)dp79.XValue < threshold && (double)dp79.YValue < threshold)
                myChart.DataPoints.Add(dp79);
            plot_index = plot_index + 1;

            dp80.XValue = Cons_X_data[plot_index];
            dp80.YValue = Cons_Y_data[plot_index];
            if ((double)dp80.XValue < threshold && (double)dp80.YValue < threshold)
                myChart.DataPoints.Add(dp80);
            plot_index = plot_index + 1;

            dp81.XValue = Cons_X_data[plot_index];
            dp81.YValue = Cons_Y_data[plot_index];
            if ((double)dp81.XValue < threshold && (double)dp81.YValue < threshold)
                myChart.DataPoints.Add(dp81);
            plot_index = plot_index + 1;

            dp82.XValue = Cons_X_data[plot_index];
            dp82.YValue = Cons_Y_data[plot_index];
            if ((double)dp82.XValue < threshold && (double)dp82.YValue < threshold)
                myChart.DataPoints.Add(dp82);
            plot_index = plot_index + 1;

            dp83.XValue = Cons_X_data[plot_index];
            dp83.YValue = Cons_Y_data[plot_index];
            if ((double)dp83.XValue < threshold && (double)dp83.YValue < threshold)
                myChart.DataPoints.Add(dp83);
            plot_index = plot_index + 1;

            dp84.XValue = Cons_X_data[plot_index];
            dp84.YValue = Cons_Y_data[plot_index];
            if ((double)dp84.XValue < threshold && (double)dp84.YValue < threshold)
                myChart.DataPoints.Add(dp84);
            plot_index = plot_index + 1;

            dp85.XValue = Cons_X_data[plot_index];
            dp85.YValue = Cons_Y_data[plot_index];
            if ((double)dp85.XValue < threshold && (double)dp85.YValue < threshold)
                myChart.DataPoints.Add(dp85);
            plot_index = plot_index + 1;

            dp86.XValue = Cons_X_data[plot_index];
            dp86.YValue = Cons_Y_data[plot_index];
            if ((double)dp86.XValue < threshold && (double)dp86.YValue < threshold)
                myChart.DataPoints.Add(dp86);
            plot_index = plot_index + 1;

            dp87.XValue = Cons_X_data[plot_index];
            dp87.YValue = Cons_Y_data[plot_index];
            if ((double)dp87.XValue < threshold && (double)dp87.YValue < threshold)
                myChart.DataPoints.Add(dp87);
            plot_index = plot_index + 1;

            dp88.XValue = Cons_X_data[plot_index];
            dp88.YValue = Cons_Y_data[plot_index];
            if ((double)dp88.XValue < threshold && (double)dp88.YValue < threshold)
                myChart.DataPoints.Add(dp88);
            plot_index = plot_index + 1;

            dp89.XValue = Cons_X_data[plot_index];
            dp89.YValue = Cons_Y_data[plot_index];
            if ((double)dp89.XValue < threshold && (double)dp89.YValue < threshold)
                myChart.DataPoints.Add(dp89);
            plot_index = plot_index + 1;

            dp90.XValue = Cons_X_data[plot_index];
            dp90.YValue = Cons_Y_data[plot_index];
            if ((double)dp90.XValue < threshold && (double)dp90.YValue < threshold)
                myChart.DataPoints.Add(dp90);
            plot_index = plot_index + 1;

            dp91.XValue = Cons_X_data[plot_index];
            dp91.YValue = Cons_Y_data[plot_index];
            if ((double)dp91.XValue < threshold && (double)dp91.YValue < threshold)
                myChart.DataPoints.Add(dp91);
            plot_index = plot_index + 1;

            dp92.XValue = Cons_X_data[plot_index];
            dp92.YValue = Cons_Y_data[plot_index];
            if ((double)dp92.XValue < threshold && (double)dp92.YValue < threshold)
                myChart.DataPoints.Add(dp92);
            plot_index = plot_index + 1;

            dp93.XValue = Cons_X_data[plot_index];
            dp93.YValue = Cons_Y_data[plot_index];
            if ((double)dp93.XValue < threshold && (double)dp93.YValue < threshold)
                myChart.DataPoints.Add(dp93);
            plot_index = plot_index + 1;

            dp94.XValue = Cons_X_data[plot_index];
            dp94.YValue = Cons_Y_data[plot_index];
            if ((double)dp94.XValue < threshold && (double)dp94.YValue < threshold)
                myChart.DataPoints.Add(dp94);
            plot_index = plot_index + 1;

            dp95.XValue = Cons_X_data[plot_index];
            dp95.YValue = Cons_Y_data[plot_index];
            if ((double)dp95.XValue < threshold && (double)dp95.YValue < threshold)
                myChart.DataPoints.Add(dp95);
            plot_index = plot_index + 1;

            dp96.XValue = Cons_X_data[plot_index];
            dp96.YValue = Cons_Y_data[plot_index];
            if ((double)dp96.XValue < threshold && (double)dp96.YValue < threshold)
                myChart.DataPoints.Add(dp96);
            plot_index = plot_index + 1;

            dp97.XValue = Cons_X_data[plot_index];
            dp97.YValue = Cons_Y_data[plot_index];
            if ((double)dp97.XValue < threshold && (double)dp97.YValue < threshold)
                myChart.DataPoints.Add(dp97);
            plot_index = plot_index + 1;

            dp98.XValue = Cons_X_data[plot_index];
            dp98.YValue = Cons_Y_data[plot_index];
            if ((double)dp98.XValue < threshold && (double)dp98.YValue < threshold)
                myChart.DataPoints.Add(dp98);
            plot_index = plot_index + 1;

            dp99.XValue = Cons_X_data[plot_index];
            dp99.YValue = Cons_Y_data[plot_index];
            if ((double)dp99.XValue < threshold && (double)dp99.YValue < threshold)
                myChart.DataPoints.Add(dp99);
            plot_index = plot_index + 1;

            dp100.XValue = Cons_X_data[plot_index];
            dp100.YValue = Cons_Y_data[plot_index];
            if ((double)dp100.XValue < threshold && (double)dp100.YValue < threshold)
                myChart.DataPoints.Add(dp100);
            plot_index = plot_index + 1;

            dp101.XValue = Cons_X_data[plot_index];
            dp101.YValue = Cons_Y_data[plot_index];
            if ((double)dp101.XValue < threshold && (double)dp101.YValue < threshold)
                myChart.DataPoints.Add(dp101);
            plot_index = plot_index + 1;

            dp102.XValue = Cons_X_data[plot_index];
            dp102.YValue = Cons_Y_data[plot_index];
            if ((double)dp102.XValue < threshold && (double)dp102.YValue < threshold)
                myChart.DataPoints.Add(dp102);
            plot_index = plot_index + 1;

            dp103.XValue = Cons_X_data[plot_index];
            dp103.YValue = Cons_Y_data[plot_index];
            if ((double)dp103.XValue < threshold && (double)dp103.YValue < threshold)
                myChart.DataPoints.Add(dp103);
            plot_index = plot_index + 1;

            dp104.XValue = Cons_X_data[plot_index];
            dp104.YValue = Cons_Y_data[plot_index];
            if ((double)dp104.XValue < threshold && (double)dp104.YValue < threshold)
                myChart.DataPoints.Add(dp104);
            plot_index = plot_index + 1;

            dp105.XValue = Cons_X_data[plot_index];
            dp105.YValue = Cons_Y_data[plot_index];
            if ((double)dp105.XValue < threshold && (double)dp105.YValue < threshold)
                myChart.DataPoints.Add(dp105);
            plot_index = plot_index + 1;

            dp106.XValue = Cons_X_data[plot_index];
            dp106.YValue = Cons_Y_data[plot_index];
            if ((double)dp106.XValue < threshold && (double)dp106.YValue < threshold)
                myChart.DataPoints.Add(dp106);
            plot_index = plot_index + 1;

            dp107.XValue = Cons_X_data[plot_index];
            dp107.YValue = Cons_Y_data[plot_index];
            if ((double)dp107.XValue < threshold && (double)dp107.YValue < threshold)
                myChart.DataPoints.Add(dp107);
            plot_index = plot_index + 1;

            dp108.XValue = Cons_X_data[plot_index];
            dp108.YValue = Cons_Y_data[plot_index];
            if ((double)dp108.XValue < threshold && (double)dp108.YValue < threshold)
                myChart.DataPoints.Add(dp108);
            plot_index = plot_index + 1;

            dp109.XValue = Cons_X_data[plot_index];
            dp109.YValue = Cons_Y_data[plot_index];
            if ((double)dp109.XValue < threshold && (double)dp109.YValue < threshold)
                myChart.DataPoints.Add(dp109);
            plot_index = plot_index + 1;

            dp110.XValue = Cons_X_data[plot_index];
            dp110.YValue = Cons_Y_data[plot_index];
            if ((double)dp110.XValue < threshold && (double)dp110.YValue < threshold)
                myChart.DataPoints.Add(dp110);
            plot_index = plot_index + 1;

            dp111.XValue = Cons_X_data[plot_index];
            dp111.YValue = Cons_Y_data[plot_index];
            if ((double)dp111.XValue < threshold && (double)dp111.YValue < threshold)
                myChart.DataPoints.Add(dp111);
            plot_index = plot_index + 1;

            dp112.XValue = Cons_X_data[plot_index];
            dp112.YValue = Cons_Y_data[plot_index];
            if ((double)dp112.XValue < threshold && (double)dp112.YValue < threshold)
                myChart.DataPoints.Add(dp112);
            plot_index = plot_index + 1;

            dp113.XValue = Cons_X_data[plot_index];
            dp113.YValue = Cons_Y_data[plot_index];
            if ((double)dp113.XValue < threshold && (double)dp113.YValue < threshold)
                myChart.DataPoints.Add(dp113);
            plot_index = plot_index + 1;

            dp114.XValue = Cons_X_data[plot_index];
            dp114.YValue = Cons_Y_data[plot_index];
            if ((double)dp114.XValue < threshold && (double)dp114.YValue < threshold)
                myChart.DataPoints.Add(dp114);
            plot_index = plot_index + 1;

            dp115.XValue = Cons_X_data[plot_index];
            dp115.YValue = Cons_Y_data[plot_index];
            if ((double)dp115.XValue < threshold && (double)dp115.YValue < threshold)
                myChart.DataPoints.Add(dp115);
            plot_index = plot_index + 1;

            dp116.XValue = Cons_X_data[plot_index];
            dp116.YValue = Cons_Y_data[plot_index];
            if ((double)dp116.XValue < threshold && (double)dp116.YValue < threshold)
                myChart.DataPoints.Add(dp116);
            plot_index = plot_index + 1;

            dp117.XValue = Cons_X_data[plot_index];
            dp117.YValue = Cons_Y_data[plot_index];
            if ((double)dp117.XValue < threshold && (double)dp117.YValue < threshold)
                myChart.DataPoints.Add(dp117);
            plot_index = plot_index + 1;

            dp118.XValue = Cons_X_data[plot_index];
            dp118.YValue = Cons_Y_data[plot_index];
            if ((double)dp118.XValue < threshold && (double)dp118.YValue < threshold)
                myChart.DataPoints.Add(dp118);
            plot_index = plot_index + 1;

            dp119.XValue = Cons_X_data[plot_index];
            dp119.YValue = Cons_Y_data[plot_index];
            if ((double)dp119.XValue < threshold && (double)dp119.YValue < threshold)
                myChart.DataPoints.Add(dp119);
            plot_index = plot_index + 1;

            dp120.XValue = Cons_X_data[plot_index];
            dp120.YValue = Cons_Y_data[plot_index];
            if ((double)dp120.XValue < threshold && (double)dp120.YValue < threshold)
                myChart.DataPoints.Add(dp120);
            plot_index = plot_index + 1;

            dp121.XValue = Cons_X_data[plot_index];
            dp121.YValue = Cons_Y_data[plot_index];
            if ((double)dp121.XValue < threshold && (double)dp121.YValue < threshold)
                myChart.DataPoints.Add(dp121);
            plot_index = plot_index + 1;

            dp122.XValue = Cons_X_data[plot_index];
            dp122.YValue = Cons_Y_data[plot_index];
            if ((double)dp122.XValue < threshold && (double)dp122.YValue < threshold)
                myChart.DataPoints.Add(dp122);
            plot_index = plot_index + 1;

            dp123.XValue = Cons_X_data[plot_index];
            dp123.YValue = Cons_Y_data[plot_index];
            if ((double)dp123.XValue < threshold && (double)dp123.YValue < threshold)
                myChart.DataPoints.Add(dp123);
            plot_index = plot_index + 1;

            dp124.XValue = Cons_X_data[plot_index];
            dp124.YValue = Cons_Y_data[plot_index];
            if ((double)dp124.XValue < threshold && (double)dp124.YValue < threshold)
                myChart.DataPoints.Add(dp124);
            plot_index = plot_index + 1;

            dp125.XValue = Cons_X_data[plot_index];
            dp125.YValue = Cons_Y_data[plot_index];
            if ((double)dp125.XValue < threshold && (double)dp125.YValue < threshold)
                myChart.DataPoints.Add(dp125);
            plot_index = plot_index + 1;

            dp126.XValue = Cons_X_data[plot_index];
            dp126.YValue = Cons_Y_data[plot_index];
            if ((double)dp126.XValue < threshold && (double)dp126.YValue < threshold)
                myChart.DataPoints.Add(dp126);
            plot_index = plot_index + 1;

            dp127.XValue = Cons_X_data[plot_index];
            dp127.YValue = Cons_Y_data[plot_index];
            if ((double)dp127.XValue < threshold && (double)dp127.YValue < threshold)
                myChart.DataPoints.Add(dp127);
            plot_index = plot_index + 1;

            dp128.XValue = Cons_X_data[plot_index];
            dp128.YValue = Cons_Y_data[plot_index];
            if ((double)dp128.XValue < threshold && (double)dp128.YValue < threshold)
                myChart.DataPoints.Add(dp128);
            plot_index = plot_index + 1;

            dp129.XValue = Cons_X_data[plot_index];
            dp129.YValue = Cons_Y_data[plot_index];
            if ((double)dp129.XValue < threshold && (double)dp129.YValue < threshold)
                myChart.DataPoints.Add(dp129);
            plot_index = plot_index + 1;

            dp130.XValue = Cons_X_data[plot_index];
            dp130.YValue = Cons_Y_data[plot_index];
            if ((double)dp130.XValue < threshold && (double)dp130.YValue < threshold)
                myChart.DataPoints.Add(dp130);
            plot_index = plot_index + 1;

            dp131.XValue = Cons_X_data[plot_index];
            dp131.YValue = Cons_Y_data[plot_index];
            if ((double)dp131.XValue < threshold && (double)dp131.YValue < threshold)
                myChart.DataPoints.Add(dp131);
            plot_index = plot_index + 1;

            dp132.XValue = Cons_X_data[plot_index];
            dp132.YValue = Cons_Y_data[plot_index];
            if ((double)dp132.XValue < threshold && (double)dp132.YValue < threshold)
                myChart.DataPoints.Add(dp132);
            plot_index = plot_index + 1;

            dp133.XValue = Cons_X_data[plot_index];
            dp133.YValue = Cons_Y_data[plot_index];
            if ((double)dp133.XValue < threshold && (double)dp133.YValue < threshold)
                myChart.DataPoints.Add(dp133);
            plot_index = plot_index + 1;

            dp134.XValue = Cons_X_data[plot_index];
            dp134.YValue = Cons_Y_data[plot_index];
            if ((double)dp134.XValue < threshold && (double)dp134.YValue < threshold)
                myChart.DataPoints.Add(dp134);
            plot_index = plot_index + 1;

            dp135.XValue = Cons_X_data[plot_index];
            dp135.YValue = Cons_Y_data[plot_index];
            if ((double)dp135.XValue < threshold && (double)dp135.YValue < threshold)
                myChart.DataPoints.Add(dp135);
            plot_index = plot_index + 1;

            dp136.XValue = Cons_X_data[plot_index];
            dp136.YValue = Cons_Y_data[plot_index];
            if ((double)dp136.XValue < threshold && (double)dp136.YValue < threshold)
                myChart.DataPoints.Add(dp136);
            plot_index = plot_index + 1;

            dp137.XValue = Cons_X_data[plot_index];
            dp137.YValue = Cons_Y_data[plot_index];
            if ((double)dp137.XValue < threshold && (double)dp137.YValue < threshold)
                myChart.DataPoints.Add(dp137);
            plot_index = plot_index + 1;

            dp138.XValue = Cons_X_data[plot_index];
            dp138.YValue = Cons_Y_data[plot_index];
            if ((double)dp138.XValue < threshold && (double)dp138.YValue < threshold)
                myChart.DataPoints.Add(dp138);
            plot_index = plot_index + 1;

            dp139.XValue = Cons_X_data[plot_index];
            dp139.YValue = Cons_Y_data[plot_index];
            if ((double)dp139.XValue < threshold && (double)dp139.YValue < threshold)
                myChart.DataPoints.Add(dp139);
            plot_index = plot_index + 1;

            dp140.XValue = Cons_X_data[plot_index];
            dp140.YValue = Cons_Y_data[plot_index];
            if ((double)dp140.XValue < threshold && (double)dp140.YValue < threshold)
                myChart.DataPoints.Add(dp140);
            plot_index = plot_index + 1;

            dp141.XValue = Cons_X_data[plot_index];
            dp141.YValue = Cons_Y_data[plot_index];
            if ((double)dp141.XValue < threshold && (double)dp141.YValue < threshold)
                myChart.DataPoints.Add(dp141);
            plot_index = plot_index + 1;

            dp142.XValue = Cons_X_data[plot_index];
            dp142.YValue = Cons_Y_data[plot_index];
            if ((double)dp142.XValue < threshold && (double)dp142.YValue < threshold)
                myChart.DataPoints.Add(dp142);
            plot_index = plot_index + 1;

            dp143.XValue = Cons_X_data[plot_index];
            dp143.YValue = Cons_Y_data[plot_index];
            if ((double)dp143.XValue < threshold && (double)dp143.YValue < threshold)
                myChart.DataPoints.Add(dp143);
            plot_index = plot_index + 1;

            dp144.XValue = Cons_X_data[plot_index];
            dp144.YValue = Cons_Y_data[plot_index];
            if ((double)dp144.XValue < threshold && (double)dp144.YValue < threshold)
                myChart.DataPoints.Add(dp144);
            plot_index = plot_index + 1;

            dp145.XValue = Cons_X_data[plot_index];
            dp145.YValue = Cons_Y_data[plot_index];
            if ((double)dp145.XValue < threshold && (double)dp145.YValue < threshold)
                myChart.DataPoints.Add(dp145);
            plot_index = plot_index + 1;

            dp146.XValue = Cons_X_data[plot_index];
            dp146.YValue = Cons_Y_data[plot_index];
            if ((double)dp146.XValue < threshold && (double)dp146.YValue < threshold)
                myChart.DataPoints.Add(dp146);
            plot_index = plot_index + 1;

            dp147.XValue = Cons_X_data[plot_index];
            dp147.YValue = Cons_Y_data[plot_index];
            if ((double)dp147.XValue < threshold && (double)dp147.YValue < threshold)
                myChart.DataPoints.Add(dp147);
            plot_index = plot_index + 1;

            dp148.XValue = Cons_X_data[plot_index];
            dp148.YValue = Cons_Y_data[plot_index];
            if ((double)dp148.XValue < threshold && (double)dp148.YValue < threshold)
                myChart.DataPoints.Add(dp148);
            plot_index = plot_index + 1;

            dp149.XValue = Cons_X_data[plot_index];
            dp149.YValue = Cons_Y_data[plot_index];
            if ((double)dp149.XValue < threshold && (double)dp149.YValue < threshold)
                myChart.DataPoints.Add(dp149);
            plot_index = plot_index + 1;

            dp150.XValue = Cons_X_data[plot_index];
            dp150.YValue = Cons_Y_data[plot_index];
            if ((double)dp150.XValue < threshold && (double)dp150.YValue < threshold)
                myChart.DataPoints.Add(dp150);
            plot_index = plot_index + 1;

            dp151.XValue = Cons_X_data[plot_index];
            dp151.YValue = Cons_Y_data[plot_index];
            if ((double)dp151.XValue < threshold && (double)dp151.YValue < threshold)
                myChart.DataPoints.Add(dp151);
            plot_index = plot_index + 1;

            dp152.XValue = Cons_X_data[plot_index];
            dp152.YValue = Cons_Y_data[plot_index];
            if ((double)dp152.XValue < threshold && (double)dp152.YValue < threshold)
                myChart.DataPoints.Add(dp152);
            plot_index = plot_index + 1;

            dp153.XValue = Cons_X_data[plot_index];
            dp153.YValue = Cons_Y_data[plot_index];
            if ((double)dp153.XValue < threshold && (double)dp153.YValue < threshold)
                myChart.DataPoints.Add(dp153);
            plot_index = plot_index + 1;

            dp154.XValue = Cons_X_data[plot_index];
            dp154.YValue = Cons_Y_data[plot_index];
            if ((double)dp154.XValue < threshold && (double)dp154.YValue < threshold)
                myChart.DataPoints.Add(dp154);
            plot_index = plot_index + 1;

            dp155.XValue = Cons_X_data[plot_index];
            dp155.YValue = Cons_Y_data[plot_index];
            if ((double)dp155.XValue < threshold && (double)dp155.YValue < threshold)
                myChart.DataPoints.Add(dp155);
            plot_index = plot_index + 1;

            dp156.XValue = Cons_X_data[plot_index];
            dp156.YValue = Cons_Y_data[plot_index];
            if ((double)dp156.XValue < threshold && (double)dp156.YValue < threshold)
                myChart.DataPoints.Add(dp156);
            plot_index = plot_index + 1;

            dp157.XValue = Cons_X_data[plot_index];
            dp157.YValue = Cons_Y_data[plot_index];
            if ((double)dp157.XValue < threshold && (double)dp157.YValue < threshold)
                myChart.DataPoints.Add(dp157);
            plot_index = plot_index + 1;

            dp158.XValue = Cons_X_data[plot_index];
            dp158.YValue = Cons_Y_data[plot_index];
            if ((double)dp158.XValue < threshold && (double)dp158.YValue < threshold)
                myChart.DataPoints.Add(dp158);
            plot_index = plot_index + 1;

            dp159.XValue = Cons_X_data[plot_index];
            dp159.YValue = Cons_Y_data[plot_index];
            if ((double)dp159.XValue < threshold && (double)dp159.YValue < threshold)
                myChart.DataPoints.Add(dp159);
            plot_index = plot_index + 1;
            
            dp160.XValue = Cons_X_data[plot_index];
            dp160.YValue = Cons_Y_data[plot_index];
            if ((double)dp160.XValue < threshold && (double)dp160.YValue < threshold)
                myChart.DataPoints.Add(dp160);
            plot_index = plot_index + 1;

            if (plot_index >= 8000)
                plot_index = 0;
                        
            /*if (msg.consteX < threshold && msg.consteY < threshold)
                myChart.DataPoints.Add(dp);*/
            while (myChart.DataPoints.Count > dpNum)
            {
                myChart.DataPoints.Remove(myChart.DataPoints[0]);
            }
        }
//        double averageRateA=0;
//        int maxNumber=0;

        void NetSyn_Mydata(DataStruct msg)
        {
            if (msg.cpudet == 1)
                trafficRate_odd = msg.trafficRate;
            else
                trafficRate_even = msg.trafficRate;

            packagenumber = trafficRate_even + trafficRate_odd;

            double rate = packagenumber * 448.0 * 8.0*1000000.0 /7/600.0/1024/1024/1024; //*****************
            if (rate > maxRate)
            {
                maxRateLabel.Content = "Max(最大速率):" + ((int)(rate*1000))/1000.0;
                maxRate = rate;
                TRBulletMax.myBulletValue.YValue = maxRate;
            }
 //           if (maxNumber == 0)
 //           {
            number++;

            if (arrayindex == -1)
            {
                arraymin[arrayindex + 1] = rate;
                arrayindex = (arrayindex + 1) % 60;
                averageRatemin = rate;
            }
            else
            {
                if (arraymin[arrayindex] != rate)
                {
                    if (arrayindex == 59)
                    {
                        Isfirstround = false;
                    }
                    if (Isfirstround == true)
                        averageRatemin = averageRatemin * (arrayindex + 1) / (arrayindex + 2) + rate / (arrayindex + 2);
                    else
                        averageRatemin = (averageRatemin * 60 - arraymin[(arrayindex + 1) % 60] + rate) / 60;
                    arraymin[(arrayindex + 1) % 60] = rate;
                    arrayindex = (arrayindex + 1) % 60;
                }
            }
            
            averageRate = averageRate * (number - 1) / number + rate / number;
            avrRateLabel.Content = "Avr(平均速率):" + ((int)(averageRatemin*1000))/1000.0;
            TRBulletAvr.myBulletValue.YValue = averageRatemin;
//            }
//            else
//            {
//                Queue averageRates = new Queue();
//                if (numberA <= maxNumber)
//                {
//                    numberA++; number++;
//                    averageRates.Enqueue(rate);
//                    averageRateA = averageRateA * (number - 1) / number + rate / number;
//                }
//                else
  //              {
//                    double rateOld = (double)averageRates.Dequeue();
//                    averageRateA = (averageRateA * number - rateOld) / (number - 1);
//                    averageRates.Enqueue(rate);
//                    averageRateA = averageRateA * (number - 1) / number + rate / number;
//                }//程序待修改,目前无法将数组移位,并始终求得naxNumber个rate值的平均值。后改,未检查
//                avrRateLabel.Content = "A:" + (int)averageRateA;
//                TRBulletAvr.myBulletValue.YValue = averageRateA;
//            }
        }
//        double averageRateA=0;
//        int maxNumber=0;

        void NetSyn_Mydata(DataStruct msg)
        {
            if (msg.cpudet == 1)
            {
                trafficRate_odd = msg.trafficRate;
            }
            else
            {
                trafficRate_even = msg.trafficRate;
            }

            packagenumber = trafficRate_even + trafficRate_odd;

            double rate = packagenumber * 448.0 * 8.0 * 1000000.0 / 7 / 600.0 / 1024 / 1024 / 1024; //*****************

            if (rate > maxRate)
            {
                maxRateLabel.Content = "Max(最大速率):" + ((int)(rate * 1000)) / 1000.0;
                maxRate = rate;
                TRBulletMax.myBulletValue.YValue = maxRate;
            }
            //           if (maxNumber == 0)
            //           {
            number++;

            if (arrayindex == -1)
            {
                arraymin[arrayindex + 1] = rate;
                arrayindex     = (arrayindex + 1) % 60;
                averageRatemin = rate;
            }
            else
            {
                if (arraymin[arrayindex] != rate)
                {
                    if (arrayindex == 59)
                    {
                        Isfirstround = false;
                    }
                    if (Isfirstround == true)
                    {
                        averageRatemin = averageRatemin * (arrayindex + 1) / (arrayindex + 2) + rate / (arrayindex + 2);
                    }
                    else
                    {
                        averageRatemin = (averageRatemin * 60 - arraymin[(arrayindex + 1) % 60] + rate) / 60;
                    }
                    arraymin[(arrayindex + 1) % 60] = rate;
                    arrayindex = (arrayindex + 1) % 60;
                }
            }

            averageRate                      = averageRate * (number - 1) / number + rate / number;
            avrRateLabel.Content             = "Avr(平均速率):" + ((int)(averageRatemin * 1000)) / 1000.0;
            TRBulletAvr.myBulletValue.YValue = averageRatemin;
//            }
//            else
//            {
//                Queue averageRates = new Queue();
//                if (numberA <= maxNumber)
//                {
//                    numberA++; number++;
//                    averageRates.Enqueue(rate);
//                    averageRateA = averageRateA * (number - 1) / number + rate / number;
//                }
//                else
//              {
//                    double rateOld = (double)averageRates.Dequeue();
//                    averageRateA = (averageRateA * number - rateOld) / (number - 1);
//                    averageRates.Enqueue(rate);
//                    averageRateA = averageRateA * (number - 1) / number + rate / number;
//                }//程序待修改,目前无法将数组移位,并始终求得naxNumber个rate值的平均值。后改,未检查
//                avrRateLabel.Content = "A:" + (int)averageRateA;
//                TRBulletAvr.myBulletValue.YValue = averageRateA;
//            }
        }