public void UpdateData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            ClearDataSource();
            AppendSpeedSource(container_1, container_2, container_3, container_4, container_5, container_6);
            AppendPressSource(container_1, container_2, container_3, container_4, container_5, container_6);
            AppendOtherSource(container_1, container_2, container_3, container_4, container_5, container_6);
            AppendWSPSource(container_1, container_2, container_3, container_4, container_5, container_6);
            this.Dispatcher.Invoke(() =>
            {
                UpdateSpeedData(container_1, container_2, container_3, container_4, container_5, container_6);
            });
            this.Dispatcher.Invoke(() =>
            {
                UpdatePressData(container_1, container_2, container_3, container_4, container_5, container_6);
            });

            this.Dispatcher.Invoke(() =>
            {
                UpdateOtherData(container_1, container_2, container_3, container_4, container_5, container_6);
            });
            this.Dispatcher.Invoke(() =>
            {
                UpdateWSPData(container_1, container_2, container_3, container_4, container_5, container_6);
            });


            if (queue.Count < X_LENGTH)
            {
                queue.Enqueue(x);
            }
            else
            {
                queue.Dequeue();
                queue.Enqueue(x);
            }
            if (x - X_LENGTH > 0)
            {
                xaxis = (int)(x - X_LENGTH);
            }
            else
            {
                xaxis = 0;
            }
            this.Dispatcher.Invoke(() =>
            {
                speedChart.Viewport.Visible    = new Rect(xaxis, 0, X_LENGTH, SPEED_CHART_Y_MAX);
                pressureChart.Viewport.Visible = new Rect(xaxis, 0, X_LENGTH, PRESS_CHART_Y_MAX);
                otherChart.Viewport.Visible    = new Rect(xaxis, 0, X_LENGTH, PRESS_CHART_Y_MAX);
            });

            x = x + 0.1;
        }
Beispiel #2
0
 public void UpdateData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
 {
     this.Dispatcher.Invoke(() =>
     {
         ClearPoint();
         SetAxisLimit();
         AddSpeed(container_1, container_2, container_3, container_4, container_5, container_6);
         AddRefSpeed(container_1);
         AddBcp(container_1, container_2, container_3, container_4, container_5, container_6);
         AddLoad(container_1, container_2, container_3, container_4, container_5, container_6);
         UpdateDI(container_1, container_2, container_3, container_4, container_5, container_6);
     });
     x = x + 0.1;
 }
Beispiel #3
0
 /// <summary>
 /// 2019-12-25:更新滑移率数值数据
 /// </summary>
 /// <param name="container_1"></param>
 /// <param name="container_2"></param>
 /// <param name="container_3"></param>
 /// <param name="container_4"></param>
 /// <param name="container_5"></param>
 /// <param name="container_6"></param>
 private void Antiskid_UpdateSlipRateData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
 {
     row_0_column_1_slipRate.Content = container_1.SlipRate1;
     row_0_column_3_slipRate.Content = container_1.SlipRate2;
     row_1_column_1_slipRate.Content = container_2.SlipRate1;
     row_1_column_3_slipRate.Content = container_2.SlipRate2;
     row_2_column_1_slipRate.Content = container_3.SlipRate1;
     row_2_column_3_slipRate.Content = container_3.SlipRate2;
     row_3_column_1_slipRate.Content = container_4.SlipRate1;
     row_3_column_3_slipRate.Content = container_4.SlipRate2;
     row_4_column_1_slipRate.Content = container_5.SlipRate1;
     row_4_column_3_slipRate.Content = container_5.SlipRate2;
     row_5_column_1_slipRate.Content = container_6.SlipRate1;
     row_5_column_3_slipRate.Content = container_6.SlipRate2;
 }
        private void AppendOtherSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            airPressure1.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
            airPressure2.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
            airPressure3.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
            airPressure4.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
            airPressure5.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
            airPressure6.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));

            loadPressure1.AppendAsync(base.Dispatcher, new Point(x, container_1.MassA1));
            loadPressure2.AppendAsync(base.Dispatcher, new Point(x, container_2.MassValue));
            loadPressure3.AppendAsync(base.Dispatcher, new Point(x, container_3.MassValue));
            loadPressure4.AppendAsync(base.Dispatcher, new Point(x, container_4.MassValue));
            loadPressure5.AppendAsync(base.Dispatcher, new Point(x, container_5.MassValue));
            loadPressure6.AppendAsync(base.Dispatcher, new Point(x, container_6.MassA1));
        }
        private void AppendWSPSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            accValue1.AppendAsync(base.Dispatcher, new Point(x, container_1.AccValue1));
            accValue2.AppendAsync(base.Dispatcher, new Point(x, container_2.AccValue1));
            accValue3.AppendAsync(base.Dispatcher, new Point(x, container_3.AccValue1));
            accValue4.AppendAsync(base.Dispatcher, new Point(x, container_4.AccValue1));
            accValue5.AppendAsync(base.Dispatcher, new Point(x, container_5.AccValue1));
            accValue6.AppendAsync(base.Dispatcher, new Point(x, container_6.AccValue1));

            slipRate1.AppendAsync(base.Dispatcher, new Point(x, container_1.SlipRate1));
            slipRate2.AppendAsync(base.Dispatcher, new Point(x, container_2.SlipRate1));
            slipRate3.AppendAsync(base.Dispatcher, new Point(x, container_3.SlipRate1));
            slipRate4.AppendAsync(base.Dispatcher, new Point(x, container_4.SlipRate1));
            slipRate5.AppendAsync(base.Dispatcher, new Point(x, container_5.SlipRate1));
            slipRate6.AppendAsync(base.Dispatcher, new Point(x, container_6.SlipRate1));
        }
        private void AppendPressSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            cylinder1.AppendAsync(base.Dispatcher, new Point(x, (container_1.Bcp1PressureAx1 + container_1.Bcp2PressureAx2) / 2));
            cylinder2.AppendAsync(base.Dispatcher, new Point(x, (container_2.Bcp1Pressure + container_2.Bcp2Pressure) / 2));
            cylinder3.AppendAsync(base.Dispatcher, new Point(x, (container_3.Bcp1Pressure + container_3.Bcp2Pressure) / 2));
            cylinder4.AppendAsync(base.Dispatcher, new Point(x, (container_4.Bcp1Pressure + container_4.Bcp2Pressure) / 2));
            cylinder5.AppendAsync(base.Dispatcher, new Point(x, (container_5.Bcp1Pressure + container_5.Bcp2Pressure) / 2));
            cylinder6.AppendAsync(base.Dispatcher, new Point(x, (container_6.Bcp1PressureAx1 + container_6.Bcp2PressureAx2) / 2));

            park1.AppendAsync(base.Dispatcher, new Point(x, container_1.ParkPressureA1));
            park2.AppendAsync(base.Dispatcher, new Point(x, container_2.ParkPressure));
            park3.AppendAsync(base.Dispatcher, new Point(x, container_3.ParkPressure));
            park4.AppendAsync(base.Dispatcher, new Point(x, container_4.ParkPressure));
            park5.AppendAsync(base.Dispatcher, new Point(x, container_5.ParkPressure));
            park6.AppendAsync(base.Dispatcher, new Point(x, container_6.ParkPressureA1));
        }
        public void UpdateData(MainDevDataContains mainDevData1, SliverDataContainer sliverData2, SliverDataContainer sliverData3, SliverDataContainer sliverData4, SliverDataContainer sliverData5, MainDevDataContains mainDevData6)
        {
            cylinderAir1.AppendAsync(base.Dispatcher, new Point(x, mainDevData1.BrakeCylinderSourcePressure));
            cylinderAir2.AppendAsync(base.Dispatcher, new Point(x, sliverData2.BrakeCylinderSourcePressure));
            cylinderAir3.AppendAsync(base.Dispatcher, new Point(x, sliverData3.BrakeCylinderSourcePressure));
            cylinderAir4.AppendAsync(base.Dispatcher, new Point(x, sliverData4.BrakeCylinderSourcePressure));
            cylinderAir5.AppendAsync(base.Dispatcher, new Point(x, sliverData5.BrakeCylinderSourcePressure));
            cylinderAir6.AppendAsync(base.Dispatcher, new Point(x, mainDevData6.BrakeCylinderSourcePressure));
            park1.AppendAsync(base.Dispatcher, new Point(x, mainDevData1.ParkPressureA1));
            park2.AppendAsync(base.Dispatcher, new Point(x, sliverData2.ParkPressure));
            park3.AppendAsync(base.Dispatcher, new Point(x, sliverData3.ParkPressure));
            park4.AppendAsync(base.Dispatcher, new Point(x, sliverData4.ParkPressure));
            park5.AppendAsync(base.Dispatcher, new Point(x, sliverData5.ParkPressure));
            park6.AppendAsync(base.Dispatcher, new Point(x, mainDevData6.ParkPressureA1));
            cylinder1.AppendAsync(base.Dispatcher, new Point(x, (mainDevData1.BRKCylinder1PressureA11 + mainDevData1.BRKCylinder2PressureA11) / 2));
            cylinder2.AppendAsync(base.Dispatcher, new Point(x, (sliverData2.BRKCylinderPressure11 + sliverData2.BRKCylinderPressure21) / 2));
            cylinder3.AppendAsync(base.Dispatcher, new Point(x, (sliverData3.BRKCylinderPressure11 + sliverData3.BRKCylinderPressure21) / 2));
            cylinder4.AppendAsync(base.Dispatcher, new Point(x, (sliverData4.BRKCylinderPressure11 + sliverData4.BRKCylinderPressure21) / 2));
            cylinder5.AppendAsync(base.Dispatcher, new Point(x, (sliverData5.BRKCylinderPressure11 + sliverData5.BRKCylinderPressure21) / 2));
            cylinder6.AppendAsync(base.Dispatcher, new Point(x, (mainDevData6.BRKCylinder1PressureA11 + mainDevData6.BRKCylinder2PressureA11) / 2));
            if (queue.Count < 60)
            {
                queue.Enqueue(x);
            }
            else
            {
                queue.Dequeue();
                queue.Enqueue(x);
            }
            if (x - 60 > 0)
            {
                xaxis = x - 60;
            }
            else
            {
                xaxis = 0;
            }
            this.Dispatcher.Invoke(() =>
            {
                cylinderAirChart.Viewport.Visible = new Rect(xaxis, 0, 60, 1260);
                parkChart.Viewport.Visible        = new Rect(xaxis, 0, 60, 1260);
                cylinderChart.Viewport.Visible    = new Rect(xaxis, 0, 60, 1260);
            });

            x++;
        }
Beispiel #8
0
        /// <summary>
        /// 更新速度曲线数据
        /// </summary>
        /// <param name="container_1"></param>
        /// <param name="container_2"></param>
        /// <param name="container_3"></param>
        /// <param name="container_4"></param>
        /// <param name="container_5"></param>
        /// <param name="container_6"></param>
        private void Antiskid_UpdateSpeedData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            //2018-10-8:速度增加至12个
            row_0_column_0_Sp.Content = (container_1.RefSpeed / 10);
            row_1_column_0_Sp.Content = (container_1.SpeedA1Shaft1 / 10) + "/" + (container_1.SpeedA1Shaft2 / 10);
            row_1_column_3_Sp.Content = (container_2.SpeedShaft1 / 10) + "/" + (container_2.SpeedShaft2 / 10);
            row_2_column_0_Sp.Content = (container_3.SpeedShaft1 / 10) + "/" + (container_3.SpeedShaft2 / 10);
            row_2_column_3_Sp.Content = (container_4.SpeedShaft1 / 10) + "/" + (container_4.SpeedShaft2 / 10);
            row_3_column_0_Sp.Content = (container_5.SpeedShaft1 / 10) + "/" + (container_5.SpeedShaft2 / 10);
            row_3_column_3_Sp.Content = (container_6.SpeedA1Shaft1 / 10) + "/" + (container_6.SpeedA1Shaft2 / 10);

            row_4_column_0_Sp.Content = (container_1.RefSpeed - container_1.SpeedA1Shaft1) / 10 + "/" + (container_1.RefSpeed - container_1.SpeedA1Shaft2) / 10;
            row_4_column_3_Sp.Content = (container_1.RefSpeed - container_2.SpeedShaft1) / 10 + "/" + (container_1.RefSpeed - container_2.SpeedShaft2) / 10;
            row_5_column_0_Sp.Content = (container_1.RefSpeed - container_3.SpeedShaft1) / 10 + "/" + (container_1.RefSpeed - container_3.SpeedShaft2) / 10;
            row_5_column_3_Sp.Content = (container_1.RefSpeed - container_4.SpeedShaft1) / 10 + "/" + (container_1.RefSpeed - container_4.SpeedShaft2) / 10;
            row_6_column_0_Sp.Content = (container_1.RefSpeed - container_5.SpeedShaft1) / 10 + "/" + (container_1.RefSpeed - container_5.SpeedShaft2) / 10;
            row_6_column_3_Sp.Content = (container_1.RefSpeed - container_6.SpeedA1Shaft1) / 10 + "/" + (container_1.RefSpeed - container_6.SpeedA1Shaft2) / 10;
        }
Beispiel #9
0
        private void AddBcp(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            bcp1AX1.AddPoint(x, container_1.Bcp1PressureAx1);
            bcp2AX1.AddPoint(x, container_1.Bcp2PressureAx2);

            bcp1AX2.AddPoint(x, container_2.Bcp1Pressure);
            bcp2AX2.AddPoint(x, container_2.Bcp2Pressure);

            bcp1AX3.AddPoint(x, container_3.Bcp1Pressure);
            bcp2AX3.AddPoint(x, container_3.Bcp2Pressure);

            bcp1AX4.AddPoint(x, container_4.Bcp1Pressure);
            bcp2AX4.AddPoint(x, container_4.Bcp2Pressure);

            bcp1AX5.AddPoint(x, container_5.Bcp1Pressure);
            bcp2AX5.AddPoint(x, container_5.Bcp2Pressure);

            bcp1AX6.AddPoint(x, container_6.Bcp1PressureAx1);
            bcp2AX6.AddPoint(x, container_6.Bcp2PressureAx2);
        }
Beispiel #10
0
        /// <summary>
        /// 更新制动缸曲线数据
        /// </summary>
        /// <param name="container_1"></param>
        /// <param name="container_2"></param>
        /// <param name="container_3"></param>
        /// <param name="container_4"></param>
        /// <param name="container_5"></param>
        /// <param name="container_6"></param>
        private void Antiskid_UpdatePressData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            row_0_column_0_Pr.Content = container_1.Bcp1PressureAx1;
            row_0_column_3_Pr.Content = container_1.Bcp2PressureAx2;

            row_1_column_0_Pr.Content = container_2.Bcp1Pressure;
            row_1_column_3_Pr.Content = container_2.Bcp2Pressure;

            row_2_column_0_Pr.Content = container_3.Bcp1Pressure;
            row_2_column_3_Pr.Content = container_3.Bcp2Pressure;

            row_3_column_0_Pr.Content = container_4.Bcp1Pressure;
            row_3_column_3_Pr.Content = container_4.Bcp2Pressure;

            row_4_column_0_Pr.Content = container_5.Bcp1Pressure;
            row_4_column_3_Pr.Content = container_5.Bcp2Pressure;

            row_5_column_0_Pr.Content = container_6.Bcp1PressureAx1;
            row_5_column_3_Pr.Content = container_6.Bcp2PressureAx2;
        }
Beispiel #11
0
        private void UpdateWSPData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            row_0_column_1_wsp.Content  = container_1.AccValue1;
            row_1_column_1_wsp.Content  = container_1.SlipRate1;
            row_2_column_1_wsp.Content  = container_1.SlipLvl1;
            row_3_column_1_wsp.Content  = container_1.AccValue2;
            row_4_column_1_wsp.Content  = container_1.SlipRate2;
            row_5_column_1_wsp.Content  = container_1.SlipLvl2;
            row_6_column_1_wsp.Content  = container_2.AccValue1;
            row_7_column_1_wsp.Content  = container_2.SlipRate1;
            row_8_column_1_wsp.Content  = container_2.SlipLvl1;
            row_9_column_1_wsp.Content  = container_4.AccValue1;
            row_10_column_1_wsp.Content = container_4.SlipRate1;
            row_11_column_1_wsp.Content = container_4.SlipLvl1;
            row_12_column_1_wsp.Content = container_6.AccValue1;
            row_13_column_1_wsp.Content = container_6.SlipRate1;
            row_14_column_1_wsp.Content = container_6.SlipLvl1;
            row_15_column_1_wsp.Content = container_6.AccValue2;
            row_16_column_1_wsp.Content = container_6.SlipRate2;
            row_17_column_1_wsp.Content = container_6.SlipLvl2;

            row_0_column_3_wsp.Content  = container_2.AccValue2;
            row_1_column_3_wsp.Content  = container_2.SlipRate2;
            row_2_column_3_wsp.Content  = container_2.SlipLvl2;
            row_3_column_3_wsp.Content  = container_3.AccValue1;
            row_4_column_3_wsp.Content  = container_3.SlipRate1;
            row_5_column_3_wsp.Content  = container_3.SlipLvl1;
            row_6_column_3_wsp.Content  = container_3.AccValue2;
            row_7_column_3_wsp.Content  = container_3.SlipRate2;
            row_8_column_3_wsp.Content  = container_3.SlipLvl2;
            row_9_column_3_wsp.Content  = container_4.AccValue2;
            row_10_column_3_wsp.Content = container_4.SlipRate2;
            row_11_column_3_wsp.Content = container_4.SlipLvl2;
            row_12_column_3_wsp.Content = container_5.AccValue1;
            row_13_column_3_wsp.Content = container_5.SlipRate1;
            row_14_column_3_wsp.Content = container_5.SlipLvl1;
            row_15_column_3_wsp.Content = container_5.AccValue2;
            row_16_column_3_wsp.Content = container_5.SlipRate2;
            row_17_column_3_wsp.Content = container_5.SlipLvl2;
        }
        private void UpdatePressData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            row_0_column_0_Pr.Content = container_1.Bcp1PressureAx1;
            row_1_column_0_Pr.Content = container_1.Bcp2PressureAx2;
            row_2_column_0_Pr.Content = container_2.Bcp1Pressure;
            row_3_column_0_Pr.Content = container_2.Bcp2Pressure;
            row_4_column_0_Pr.Content = container_3.Bcp1Pressure;
            row_5_column_0_Pr.Content = container_3.Bcp2Pressure;
            row_6_column_0_Pr.Content = container_4.Bcp1Pressure;
            row_7_column_0_Pr.Content = container_4.Bcp2Pressure;
            row_8_column_0_Pr.Content = container_4.ParkPressure;
            row_9_column_0_Pr.Content = container_5.ParkPressure;

            row_0_column_3_Pr.Content = container_5.Bcp1Pressure;
            row_1_column_3_Pr.Content = container_5.Bcp2Pressure;
            row_2_column_3_Pr.Content = container_6.Bcp1PressureAx1;
            row_3_column_3_Pr.Content = container_6.Bcp2PressureAx2;
            row_4_column_3_Pr.Content = container_1.ParkPressureA1;
            row_5_column_3_Pr.Content = container_2.ParkPressure;
            row_6_column_3_Pr.Content = container_3.ParkPressure;
            row_7_column_3_Pr.Content = container_6.ParkPressureA1;
        }
Beispiel #13
0
        /// <summary>
        /// 在图表中添加压力数据
        /// </summary>
        /// <param name="container_1"></param>
        /// <param name="container_2"></param>
        /// <param name="container_3"></param>
        /// <param name="container_4"></param>
        /// <param name="container_5"></param>
        /// <param name="container_6"></param>
        private void Antiskid_AppendPressSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            //Antiskid_cylinder1.AppendAsync(base.Dispatcher, new Point(x, (container_1.Bcp1PressureAx1 + container_1.Bcp2PressureAx2) / 2));
            //Antiskid_cylinder2.AppendAsync(base.Dispatcher, new Point(x, (container_2.Bcp1Pressure + container_2.Bcp2Pressure) / 2));
            //Antiskid_cylinder3.AppendAsync(base.Dispatcher, new Point(x, (container_3.Bcp1Pressure + container_3.Bcp2Pressure) / 2));
            //Antiskid_cylinder4.AppendAsync(base.Dispatcher, new Point(x, (container_4.Bcp1Pressure + container_4.Bcp2Pressure) / 2));
            //Antiskid_cylinder5.AppendAsync(base.Dispatcher, new Point(x, (container_5.Bcp1Pressure + container_5.Bcp2Pressure) / 2));
            //Antiskid_cylinder6.AppendAsync(base.Dispatcher, new Point(x, (container_6.Bcp1PressureAx1 + container_6.Bcp2PressureAx2) / 2));
            Antiskid_cylinder1_1.AppendAsync(base.Dispatcher, new Point(x, container_1.Bcp1PressureAx1));
            Antiskid_cylinder2_1.AppendAsync(base.Dispatcher, new Point(x, container_2.Bcp1Pressure));
            Antiskid_cylinder3_1.AppendAsync(base.Dispatcher, new Point(x, container_3.Bcp1Pressure));
            Antiskid_cylinder4_1.AppendAsync(base.Dispatcher, new Point(x, container_4.Bcp1Pressure));
            Antiskid_cylinder5_1.AppendAsync(base.Dispatcher, new Point(x, container_5.Bcp1Pressure));
            Antiskid_cylinder6_1.AppendAsync(base.Dispatcher, new Point(x, container_6.Bcp1PressureAx1));

            Antiskid_cylinder1_2.AppendAsync(base.Dispatcher, new Point(x, container_1.Bcp2PressureAx2));
            Antiskid_cylinder2_2.AppendAsync(base.Dispatcher, new Point(x, container_2.Bcp2Pressure));
            Antiskid_cylinder3_2.AppendAsync(base.Dispatcher, new Point(x, container_3.Bcp2Pressure));
            Antiskid_cylinder4_2.AppendAsync(base.Dispatcher, new Point(x, container_4.Bcp2Pressure));
            Antiskid_cylinder5_2.AppendAsync(base.Dispatcher, new Point(x, container_5.Bcp2Pressure));
            Antiskid_cylinder6_2.AppendAsync(base.Dispatcher, new Point(x, container_6.Bcp2PressureAx2));
        }
        public void UpdateData(MainDevDataContains mainDevData1, SliverDataContainer sliverData2, SliverDataContainer sliverData3, SliverDataContainer sliverData4, SliverDataContainer sliverData5, MainDevDataContains mainDevData6)
        {
            airPressure1.AppendAsync(base.Dispatcher, new Point(x, (mainDevData1.AirSpring1PressureA1Car1 + mainDevData1.AirSpring2PressureA1Car1) / 2));
            airPressure2.AppendAsync(base.Dispatcher, new Point(x, (sliverData2.AirSpringPressure1 + sliverData2.AirSpringPressure2) / 2));
            airPressure3.AppendAsync(base.Dispatcher, new Point(x, (sliverData3.AirSpringPressure1 + sliverData3.AirSpringPressure2) / 2));
            airPressure4.AppendAsync(base.Dispatcher, new Point(x, (sliverData4.AirSpringPressure1 + sliverData4.AirSpringPressure2) / 2));
            airPressure5.AppendAsync(base.Dispatcher, new Point(x, (sliverData5.AirSpringPressure1 + sliverData5.AirSpringPressure2) / 2));
            airPressure6.AppendAsync(base.Dispatcher, new Point(x, (mainDevData6.AirSpring1PressureA1Car1 + mainDevData6.AirSpring2PressureA1Car1) / 2));

            loadPressure1.AppendAsync(base.Dispatcher, new Point(x, mainDevData1.MassA1));
            loadPressure2.AppendAsync(base.Dispatcher, new Point(x, sliverData2.MassValue));
            loadPressure3.AppendAsync(base.Dispatcher, new Point(x, sliverData3.MassValue));
            loadPressure4.AppendAsync(base.Dispatcher, new Point(x, sliverData4.MassValue));
            loadPressure5.AppendAsync(base.Dispatcher, new Point(x, sliverData5.MassValue));
            loadPressure6.AppendAsync(base.Dispatcher, new Point(x, mainDevData6.MassA1));
            if (queue.Count < 60)
            {
                queue.Enqueue(x);
            }
            else
            {
                queue.Dequeue();
                queue.Enqueue(x);
            }
            if (x - 60 > 0)
            {
                xaxis = x - 60;
            }
            else
            {
                xaxis = 0;
            }
            this.Dispatcher.Invoke(() =>
            {
                airPressreChart.Viewport.Visible   = new Rect(xaxis, 0, 60, 1260);
                loadPressureChart.Viewport.Visible = new Rect(xaxis, 0, 60, 1260);
            });
            x++;
        }
Beispiel #15
0
 /// <summary>
 /// 在图表中添加速度值
 /// </summary>
 /// <param name="container_1"></param>
 /// <param name="container_2"></param>
 /// <param name="container_3"></param>
 /// <param name="container_4"></param>
 /// <param name="container_5"></param>
 /// <param name="container_6"></param>
 private void Antiskid_AppendSpeedSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
 {
     //Antiskid_speed1.AppendAsync(base.Dispatcher, new Point(x, (container_1.SpeedA1Shaft1 + container_1.SpeedA1Shaft2) / 2));
     //Antiskid_speed2.AppendAsync(base.Dispatcher, new Point(x, (container_2.SpeedShaft1 + container_2.SpeedShaft2) / 2));
     //Antiskid_speed3.AppendAsync(base.Dispatcher, new Point(x, (container_3.SpeedShaft1 + container_3.SpeedShaft2) / 2));
     //Antiskid_speed4.AppendAsync(base.Dispatcher, new Point(x, (container_4.SpeedShaft1 + container_4.SpeedShaft2) / 2));
     //Antiskid_speed5.AppendAsync(base.Dispatcher, new Point(x, (container_5.SpeedShaft1 + container_5.SpeedShaft2) / 2));
     //Antiskid_speed6.AppendAsync(base.Dispatcher, new Point(x, (container_6.SpeedA1Shaft1 + container_6.SpeedA1Shaft2) / 2));
     Antiskid_refSpeed.AppendAsync(base.Dispatcher, new Point(x, container_1.RefSpeed / 10));
     Antiskid_speed1_1.AppendAsync(base.Dispatcher, new Point(x, container_1.SpeedA1Shaft1 / 10));
     Antiskid_speed1_2.AppendAsync(base.Dispatcher, new Point(x, container_1.SpeedA1Shaft2 / 10));
     Antiskid_speed2_1.AppendAsync(base.Dispatcher, new Point(x, container_2.SpeedShaft1 / 10));
     Antiskid_speed2_2.AppendAsync(base.Dispatcher, new Point(x, container_2.SpeedShaft2 / 10));
     Antiskid_speed3_1.AppendAsync(base.Dispatcher, new Point(x, container_3.SpeedShaft1 / 10));
     Antiskid_speed3_2.AppendAsync(base.Dispatcher, new Point(x, container_3.SpeedShaft2 / 10));
     Antiskid_speed4_1.AppendAsync(base.Dispatcher, new Point(x, container_4.SpeedShaft1 / 10));
     Antiskid_speed4_2.AppendAsync(base.Dispatcher, new Point(x, container_4.SpeedShaft2 / 10));
     Antiskid_speed5_1.AppendAsync(base.Dispatcher, new Point(x, container_5.SpeedShaft1 / 10));
     Antiskid_speed5_2.AppendAsync(base.Dispatcher, new Point(x, container_5.SpeedShaft2 / 10));
     Antiskid_speed6_1.AppendAsync(base.Dispatcher, new Point(x, container_6.SpeedA1Shaft1 / 10));
     Antiskid_speed6_2.AppendAsync(base.Dispatcher, new Point(x, container_6.SpeedA1Shaft2 / 10));
 }
Beispiel #16
0
        //private void UpdateOtherData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        //{
        //    row_0_column_0_Ot.Content = container_1.AirSpring1PressureA1Car1;
        //    row_1_column_0_Ot.Content = container_1.AirSpring2PressureA1Car1;
        //    row_2_column_0_Ot.Content = container_2.AirSpringPressure1;
        //    row_3_column_0_Ot.Content = container_2.AirSpringPressure2;
        //    row_4_column_0_Ot.Content = container_3.AirSpringPressure1;
        //    row_5_column_0_Ot.Content = container_3.AirSpringPressure2;
        //    row_6_column_0_Ot.Content = container_4.AirSpringPressure1;
        //    row_7_column_0_Ot.Content = container_4.AirSpringPressure2;
        //    row_8_column_0_Ot.Content = container_5.AirSpringPressure1;

        //    row_0_column_3_Ot.Content = container_5.AirSpringPressure2;
        //    row_1_column_3_Ot.Content = container_6.AirSpring1PressureA1Car1;
        //    row_2_column_3_Ot.Content = container_6.AirSpring2PressureA1Car1;
        //    row_3_column_3_Ot.Content = container_1.MassA1;
        //    row_4_column_3_Ot.Content = container_2.MassValue;
        //    row_5_column_3_Ot.Content = container_3.MassValue;
        //    row_6_column_3_Ot.Content = container_4.MassValue;
        //    row_7_column_3_Ot.Content = container_5.MassValue;
        //    row_8_column_3_Ot.Content = container_6.MassA1;
        //}

        private void UpdatePressData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            row_0_column_0_Pr.Content = container_1.Bcp1PressureAx1;
            row_1_column_0_Pr.Content = container_1.Bcp2PressureAx2;
            row_2_column_0_Pr.Content = container_2.Bcp1Pressure;
            row_3_column_0_Pr.Content = container_2.Bcp2Pressure;
            row_4_column_0_Pr.Content = container_3.Bcp1Pressure;
            row_5_column_0_Pr.Content = container_3.Bcp2Pressure;
            row_6_column_0_Pr.Content = container_4.Bcp1Pressure;
            row_7_column_0_Pr.Content = container_4.Bcp2Pressure;
            row_8_column_0_Pr.Content = container_1.RefSpeed;
            row_9_column_0_Pr.Content = container_1.EdFadeOut;

            row_0_column_3_Pr.Content = container_5.Bcp1Pressure;
            row_1_column_3_Pr.Content = container_5.Bcp2Pressure;
            row_2_column_3_Pr.Content = container_6.Bcp1PressureAx1;
            row_3_column_3_Pr.Content = container_6.Bcp2PressureAx2;
            row_4_column_3_Pr.Content = container_1.DcuEbRealValue[0];
            row_5_column_3_Pr.Content = container_1.DcuEbRealValue[1];
            row_6_column_3_Pr.Content = container_1.DcuEbRealValue[2];
            row_7_column_3_Pr.Content = container_1.DcuEbRealValue[3];
        }
        private void UpdateOtherData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            row_0_column_0_Ot.Content = container_1.AirSpring1PressureA1Car1;
            row_1_column_0_Ot.Content = container_1.AirSpring2PressureA1Car1;
            row_2_column_0_Ot.Content = container_2.AirSpringPressure1;
            row_3_column_0_Ot.Content = container_2.AirSpringPressure2;
            row_4_column_0_Ot.Content = container_3.AirSpringPressure1;
            row_5_column_0_Ot.Content = container_3.AirSpringPressure2;
            row_6_column_0_Ot.Content = container_4.AirSpringPressure1;
            row_7_column_0_Ot.Content = container_4.AirSpringPressure2;
            row_8_column_0_Ot.Content = container_5.AirSpringPressure1;

            row_0_column_3_Ot.Content = container_5.AirSpringPressure2;
            row_1_column_3_Ot.Content = container_6.AirSpring1PressureA1Car1;
            row_2_column_3_Ot.Content = container_6.AirSpring2PressureA1Car1;
            row_3_column_3_Ot.Content = container_1.MassA1;
            row_4_column_3_Ot.Content = container_2.MassValue;
            row_5_column_3_Ot.Content = container_3.MassValue;
            row_6_column_3_Ot.Content = container_4.MassValue;
            row_7_column_3_Ot.Content = container_5.MassValue;
            row_8_column_3_Ot.Content = container_6.MassA1;
        }
Beispiel #18
0
        //private void AppendOtherSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        //{
        //    airPressure1.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
        //    airPressure2.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
        //    airPressure3.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
        //    airPressure4.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
        //    airPressure5.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));
        //    airPressure6.AppendAsync(base.Dispatcher, new Point(x, (container_1.AirSpring1PressureA1Car1 + container_1.AirSpring2PressureA1Car1) / 2));

        //    loadPressure1.AppendAsync(base.Dispatcher, new Point(x, container_1.MassA1));
        //    loadPressure2.AppendAsync(base.Dispatcher, new Point(x, container_2.MassValue));
        //    loadPressure3.AppendAsync(base.Dispatcher, new Point(x, container_3.MassValue));
        //    loadPressure4.AppendAsync(base.Dispatcher, new Point(x, container_4.MassValue));
        //    loadPressure5.AppendAsync(base.Dispatcher, new Point(x, container_5.MassValue));
        //    loadPressure6.AppendAsync(base.Dispatcher, new Point(x, container_6.MassA1));
        //}

        private void AppendPressSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            cylinder1.AppendAsync(base.Dispatcher, new Point(x, (container_1.Bcp1PressureAx1)));
            cylinder2.AppendAsync(base.Dispatcher, new Point(x, (container_1.Bcp2PressureAx2)));
            cylinder3.AppendAsync(base.Dispatcher, new Point(x, (container_2.Bcp1Pressure)));
            cylinder4.AppendAsync(base.Dispatcher, new Point(x, (container_2.Bcp2Pressure)));
            cylinder5.AppendAsync(base.Dispatcher, new Point(x, (container_3.Bcp1Pressure)));
            cylinder6.AppendAsync(base.Dispatcher, new Point(x, (container_3.Bcp2Pressure)));
            cylinder7.AppendAsync(base.Dispatcher, new Point(x, (container_4.Bcp1Pressure)));
            cylinder8.AppendAsync(base.Dispatcher, new Point(x, (container_4.Bcp2Pressure)));
            cylinder9.AppendAsync(base.Dispatcher, new Point(x, (container_5.Bcp1Pressure)));
            cylinder10.AppendAsync(base.Dispatcher, new Point(x, (container_5.Bcp2Pressure)));
            cylinder11.AppendAsync(base.Dispatcher, new Point(x, (container_6.Bcp1PressureAx1)));
            cylinder12.AppendAsync(base.Dispatcher, new Point(x, (container_6.Bcp2PressureAx2)));

            dcu1.AppendAsync(base.Dispatcher, new Point(x, container_1.DcuEbRealValue[0]));
            dcu2.AppendAsync(base.Dispatcher, new Point(x, container_1.DcuEbRealValue[1]));
            dcu3.AppendAsync(base.Dispatcher, new Point(x, container_1.DcuEbRealValue[2]));
            dcu4.AppendAsync(base.Dispatcher, new Point(x, container_1.DcuEbRealValue[3]));
            //ref.AppendAsync(base.Dispatcher, new Point(x, container_5.ParkPressure));
            edfadeout.AppendAsync(base.Dispatcher, new Point(x, (container_1.EdFadeOut == true ? 1 : 0) * 200));
        }
Beispiel #19
0
        private void UpdateDI(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            row_0_column_1_Ax1.Content = (container_1.SpeedA1Shaft1 + container_1.SpeedA1Shaft2) / 2;
            row_1_column_1_Ax1.Content = container_1.RefSpeed;
            row_2_column_1_Ax1.Content = container_1.MassA1;
            row_0_column_3_Ax1.Content = container_1.Bcp1PressureAx1;
            row_1_column_3_Ax1.Content = container_1.Bcp2PressureAx2;

            row_0_column_1_Ax2.Content = (container_2.SpeedShaft1 + container_2.SpeedShaft2) / 2;
            row_1_column_1_Ax2.Content = container_1.RefSpeed;
            row_2_column_1_Ax2.Content = container_2.MassValue;
            row_0_column_3_Ax2.Content = container_2.Bcp1Pressure;
            row_1_column_3_Ax2.Content = container_2.Bcp2Pressure;

            row_0_column_1_Ax3.Content = (container_3.SpeedShaft1 + container_2.SpeedShaft2) / 2;
            row_1_column_1_Ax3.Content = container_1.RefSpeed;
            row_2_column_1_Ax3.Content = container_3.MassValue;
            row_0_column_3_Ax3.Content = container_3.Bcp1Pressure;
            row_1_column_3_Ax3.Content = container_3.Bcp2Pressure;

            row_0_column_1_Ax4.Content = (container_4.SpeedShaft1 + container_2.SpeedShaft2) / 2;
            row_1_column_1_Ax4.Content = container_1.RefSpeed;
            row_2_column_1_Ax4.Content = container_4.MassValue;
            row_0_column_3_Ax4.Content = container_4.Bcp1Pressure;
            row_1_column_3_Ax4.Content = container_4.Bcp2Pressure;

            row_0_column_1_Ax5.Content = (container_5.SpeedShaft1 + container_2.SpeedShaft2) / 2;
            row_1_column_1_Ax5.Content = container_1.RefSpeed;
            row_2_column_1_Ax5.Content = container_5.MassValue;
            row_0_column_3_Ax5.Content = container_5.Bcp1Pressure;
            row_1_column_3_Ax5.Content = container_5.Bcp2Pressure;

            row_0_column_1_Ax6.Content = (container_6.SpeedA1Shaft1 + container_1.SpeedA1Shaft2) / 2;
            row_1_column_1_Ax6.Content = container_6.RefSpeed;
            row_2_column_1_Ax6.Content = container_6.MassA1;
            row_0_column_3_Ax6.Content = container_6.Bcp1PressureAx1;
            row_1_column_3_Ax6.Content = container_6.Bcp2PressureAx2;
        }
Beispiel #20
0
        /// <summary>
        /// 在图表中添加WSP数据
        /// </summary>
        /// <param name="container_1"></param>
        /// <param name="container_2"></param>
        /// <param name="container_3"></param>
        /// <param name="container_4"></param>
        /// <param name="container_5"></param>
        /// <param name="container_6"></param>
        private void Antiskid_AppendWSPSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            Antiskid_accValue1_1.AppendAsync(base.Dispatcher, new Point(x, container_1.AccValue1));
            Antiskid_accValue2_1.AppendAsync(base.Dispatcher, new Point(x, container_2.AccValue1));
            Antiskid_accValue3_1.AppendAsync(base.Dispatcher, new Point(x, container_3.AccValue1));
            Antiskid_accValue4_1.AppendAsync(base.Dispatcher, new Point(x, container_4.AccValue1));
            Antiskid_accValue5_1.AppendAsync(base.Dispatcher, new Point(x, container_5.AccValue1));
            Antiskid_accValue6_1.AppendAsync(base.Dispatcher, new Point(x, container_6.AccValue1));

            Antiskid_accValue1_2.AppendAsync(base.Dispatcher, new Point(x, container_1.AccValue2));
            Antiskid_accValue2_2.AppendAsync(base.Dispatcher, new Point(x, container_2.AccValue2));
            Antiskid_accValue3_2.AppendAsync(base.Dispatcher, new Point(x, container_3.AccValue2));
            Antiskid_accValue4_2.AppendAsync(base.Dispatcher, new Point(x, container_4.AccValue2));
            Antiskid_accValue5_2.AppendAsync(base.Dispatcher, new Point(x, container_5.AccValue2));
            Antiskid_accValue6_2.AppendAsync(base.Dispatcher, new Point(x, container_6.AccValue2));

            //2018-10-11:滑移率暂时不用显示在曲线上
            //Antiskid_slipRate1.AppendAsync(base.Dispatcher, new Point(x, container_1.SlipRate1));
            //Antiskid_slipRate2.AppendAsync(base.Dispatcher, new Point(x, container_2.SlipRate1));
            //Antiskid_slipRate3.AppendAsync(base.Dispatcher, new Point(x, container_3.SlipRate1));
            //Antiskid_slipRate4.AppendAsync(base.Dispatcher, new Point(x, container_4.SlipRate1));
            //Antiskid_slipRate5.AppendAsync(base.Dispatcher, new Point(x, container_5.SlipRate1));
            //Antiskid_slipRate6.AppendAsync(base.Dispatcher, new Point(x, container_6.SlipRate1));
        }
        public void UpdateData(MainDevDataContains mainDevData1, SliverDataContainer sliverData2, SliverDataContainer sliverData3, SliverDataContainer sliverData4, SliverDataContainer sliverData5, MainDevDataContains mainDevData6)
        {
            ClearDataSource();
            speed1.AppendAsync(base.Dispatcher, new Point(x, (mainDevData1.SpeedA1Shaft1 + mainDevData1.SpeedA1Shaft2) / 2));
            speed2.AppendAsync(base.Dispatcher, new Point(x, (sliverData2.SpeedShaft1 + sliverData2.SpeedShaft2) / 2));
            speed3.AppendAsync(base.Dispatcher, new Point(x, (sliverData3.SpeedShaft1 + sliverData3.SpeedShaft2) / 2));
            speed4.AppendAsync(base.Dispatcher, new Point(x, (sliverData4.SpeedShaft1 + sliverData4.SpeedShaft2) / 2));
            speed5.AppendAsync(base.Dispatcher, new Point(x, (sliverData5.SpeedShaft1 + sliverData5.SpeedShaft2) / 2));
            speed6.AppendAsync(base.Dispatcher, new Point(x, (mainDevData6.SpeedA1Shaft1 + mainDevData6.SpeedA1Shaft2) / 2));
            if (queue.Count < 60)
            {
                queue.Enqueue(x);
            }
            else
            {
                queue.Dequeue();
                queue.Enqueue(x);
            }
            if (x - 60 > 0)
            {
                xaxis = x - 60;
            }
            else
            {
                xaxis = 0;
            }
            this.Dispatcher.Invoke(() =>
            {
                speedChart.Viewport.Visible = new Rect(xaxis, 0, 60, 180);
            });

            x++;
        }
Beispiel #22
0
        /// <summary>
        /// 2019-12-25:向图表中添加滑移率的数据
        /// </summary>
        /// <param name="container_1"></param>
        /// <param name="container_2"></param>
        /// <param name="container_3"></param>
        /// <param name="container_4"></param>
        /// <param name="container_5"></param>
        /// <param name="container_6"></param>
        private void Antiskid_AppendSlipRateSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            #region 计算各车的滑移率
            if (container_1.GateValveState)
            {
                container_1.SlipRate1 = ((container_1.RefSpeed - container_1.SpeedA1Shaft1) / container_1.RefSpeed) * 100;
                container_1.SlipRate2 = ((container_1.RefSpeed - container_1.SpeedA1Shaft2) / container_1.RefSpeed) * 100;
            }
            else
            {
                container_1.SlipRate1 = ((container_6.RefSpeed - container_1.SpeedA1Shaft1) / container_6.RefSpeed) * 100;
                container_1.SlipRate2 = ((container_6.RefSpeed - container_1.SpeedA1Shaft2) / container_6.RefSpeed) * 100;
            }

            if (container_2.GateValveState)
            {
                container_2.SlipRate1 = ((container_1.RefSpeed - container_2.SpeedShaft1) / container_1.RefSpeed) * 100;
                container_2.SlipRate2 = ((container_1.RefSpeed - container_2.SpeedShaft1) / container_1.RefSpeed) * 100;
            }
            else
            {
                container_2.SlipRate1 = ((container_6.RefSpeed - container_2.SpeedShaft1) / container_6.RefSpeed) * 100;
                container_2.SlipRate2 = ((container_6.RefSpeed - container_2.SpeedShaft1) / container_6.RefSpeed) * 100;
            }

            if (container_3.GateValveState)
            {
                container_3.SlipRate1 = ((container_1.RefSpeed - container_3.SpeedShaft1) / container_1.RefSpeed) * 100;
                container_3.SlipRate2 = ((container_1.RefSpeed - container_3.SpeedShaft1) / container_1.RefSpeed) * 100;
            }
            else
            {
                container_3.SlipRate1 = ((container_6.RefSpeed - container_3.SpeedShaft1) / container_6.RefSpeed) * 100;
                container_3.SlipRate2 = ((container_6.RefSpeed - container_3.SpeedShaft1) / container_6.RefSpeed) * 100;
            }

            if (container_4.GateValveState)
            {
                container_4.SlipRate1 = ((container_1.RefSpeed - container_4.SpeedShaft1) / container_1.RefSpeed) * 100;
                container_4.SlipRate2 = ((container_1.RefSpeed - container_4.SpeedShaft1) / container_1.RefSpeed) * 100;
            }
            else
            {
                container_4.SlipRate1 = ((container_6.RefSpeed - container_4.SpeedShaft1) / container_6.RefSpeed) * 100;
                container_4.SlipRate2 = ((container_6.RefSpeed - container_4.SpeedShaft1) / container_6.RefSpeed) * 100;
            }

            if (container_5.GateValveState)
            {
                container_5.SlipRate1 = ((container_1.RefSpeed - container_5.SpeedShaft1) / container_1.RefSpeed) * 100;
                container_5.SlipRate2 = ((container_1.RefSpeed - container_5.SpeedShaft1) / container_1.RefSpeed) * 100;
            }
            else
            {
                container_5.SlipRate1 = ((container_6.RefSpeed - container_5.SpeedShaft1) / container_6.RefSpeed) * 100;
                container_5.SlipRate2 = ((container_6.RefSpeed - container_5.SpeedShaft1) / container_6.RefSpeed) * 100;
            }

            if (container_6.GateValveState)
            {
                container_6.SlipRate1 = ((container_1.RefSpeed - container_6.SpeedA1Shaft1) / container_1.RefSpeed) * 100;
                container_6.SlipRate2 = ((container_1.RefSpeed - container_6.SpeedA1Shaft2) / container_1.RefSpeed) * 100;
            }
            else
            {
                container_6.SlipRate1 = ((container_6.RefSpeed - container_6.SpeedA1Shaft1) / container_6.RefSpeed) * 100;
                container_6.SlipRate2 = ((container_6.RefSpeed - container_6.SpeedA1Shaft2) / container_6.RefSpeed) * 100;
            }
            #endregion
            Antiskid_slipRate1_1.AppendAsync(base.Dispatcher, new Point(x, container_1.SlipRate1));
            Antiskid_slipRate1_2.AppendAsync(base.Dispatcher, new Point(x, container_1.SlipRate2));
            Antiskid_slipRate2_1.AppendAsync(base.Dispatcher, new Point(x, container_2.SlipRate1));
            Antiskid_slipRate2_2.AppendAsync(base.Dispatcher, new Point(x, container_2.SlipRate2));
            Antiskid_slipRate3_1.AppendAsync(base.Dispatcher, new Point(x, container_3.SlipRate1));
            Antiskid_slipRate3_2.AppendAsync(base.Dispatcher, new Point(x, container_3.SlipRate2));
            Antiskid_slipRate4_1.AppendAsync(base.Dispatcher, new Point(x, container_4.SlipRate1));
            Antiskid_slipRate4_2.AppendAsync(base.Dispatcher, new Point(x, container_4.SlipRate2));
            Antiskid_slipRate5_1.AppendAsync(base.Dispatcher, new Point(x, container_5.SlipRate1));
            Antiskid_slipRate5_2.AppendAsync(base.Dispatcher, new Point(x, container_5.SlipRate2));
            Antiskid_slipRate6_1.AppendAsync(base.Dispatcher, new Point(x, container_6.SlipRate1));
            Antiskid_slipRate6_2.AppendAsync(base.Dispatcher, new Point(x, container_6.SlipRate2));
        }
Beispiel #23
0
 private void AddSpeed(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
 {
     speedAX1.AddPoint(x, (container_1.SpeedA1Shaft1 + container_1.SpeedA1Shaft2) / 2);
     speedAX2.AddPoint(x, (container_2.SpeedShaft1 + container_2.SpeedShaft2) / 2);
     speedAX3.AddPoint(x, (container_3.SpeedShaft1 + container_3.SpeedShaft2) / 2);
     speedAX4.AddPoint(x, (container_4.SpeedShaft1 + container_4.SpeedShaft2) / 2);
     speedAX5.AddPoint(x, (container_5.SpeedShaft1 + container_5.SpeedShaft2) / 2);
     speedAX6.AddPoint(x, (container_6.SpeedA1Shaft1 + container_6.SpeedA1Shaft2) / 2);
 }
Beispiel #24
0
        /// <summary>
        /// 更新减速度、滑移率和滑行等级曲线数据
        /// </summary>
        /// <param name="container_1"></param>
        /// <param name="container_2"></param>
        /// <param name="container_3"></param>
        /// <param name="container_4"></param>
        /// <param name="container_5"></param>
        /// <param name="container_6"></param>
        private void Antiskid_UpdateWSPData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            //2018-10-8:重新排序减速度、滑移率等界面顺序,增加减速度为12个

            //减速度组
            row_0_column_1_wsp.Content = (container_1.AccValue1) + "/" + (container_1.AccValue2);
            row_0_column_3_wsp.Content = (container_2.AccValue1) + "/" + (container_2.AccValue2);
            row_1_column_1_wsp.Content = (container_3.AccValue1) + "/" + (container_3.AccValue2);
            row_1_column_3_wsp.Content = (container_4.AccValue1) + "/" + (container_4.AccValue2);
            row_2_column_1_wsp.Content = (container_5.AccValue1) + "/" + (container_5.AccValue2);
            row_2_column_3_wsp.Content = (container_6.AccValue1) + "/" + (container_6.AccValue2);

            //滑移率
            row_3_column_1_wsp.Content = container_1.SlipRate1 + "/" + container_1.SlipRate2;
            row_3_column_3_wsp.Content = container_2.SlipRate1 + "/" + container_2.SlipRate2;
            row_4_column_1_wsp.Content = container_3.SlipRate1 + "/" + container_3.SlipRate2;
            row_4_column_3_wsp.Content = container_4.SlipRate1 + "/" + container_4.SlipRate2;
            row_5_column_1_wsp.Content = container_5.SlipRate1 + "/" + container_5.SlipRate2;
            row_5_column_3_wsp.Content = container_6.SlipRate1 + "/" + container_6.SlipRate2;

            //滑行等级
            row_6_column_1_wsp.Content = container_1.SlipLvl1 + "/" + container_1.SlipLvl2;
            row_6_column_3_wsp.Content = container_2.SlipLvl1 + "/" + container_2.SlipLvl2;
            row_7_column_1_wsp.Content = container_3.SlipLvl1 + "/" + container_3.SlipLvl2;
            row_7_column_3_wsp.Content = container_4.SlipLvl1 + "/" + container_4.SlipLvl2;
            row_8_column_1_wsp.Content = container_5.SlipLvl1 + "/" + container_5.SlipLvl2;
            row_8_column_3_wsp.Content = container_6.SlipLvl1 + "/" + container_6.SlipLvl2;
        }
 public void UpdateData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
 {
     this.container_1 = container_1;
     this.container_2 = container_2;
     this.container_3 = container_3;
     this.container_4 = container_4;
     this.container_5 = container_5;
     this.container_6 = container_6;
 }
        /// <summary>
        /// UI呈现
        /// </summary>
        /// <param name="sliverDataContainer"></param>
        public void UIControl(SliverDataContainer sliverDataContainer)
        {
            #region TPDO7 UI

            // 0~1 st. bytes
            t7Byte01Tb.Text = sliverDataContainer.LifeSig.ToString();

            // 2 nd. byte
            t7Byte2Bit0Tb.Text = sliverDataContainer.Slip.ToString();
            t7Byte2Bit1Tb.Text = sliverDataContainer.AbBrakeActive.ToString();
            t7Byte2Bit2Tb.Text = sliverDataContainer.BCPLow1.ToString();
            t7Byte2Bit3Tb.Text = sliverDataContainer.ParkBrakeRealease.ToString();
            t7Byte2Bit4Tb.Text = sliverDataContainer.AbBrakeSatet.ToString();
            t7Byte2Bit5Tb.Text = sliverDataContainer.MassSigValid.ToString();
            t7Byte2Bit6Tb.Text = sliverDataContainer.MREPressureEnable1.ToString();

            // 3 rd. byte
            t7Byte3Bit0Tb.Text = sliverDataContainer.Slip.ToString();
            t7Byte3Bit1Tb.Text = sliverDataContainer.EmergencyBrake.ToString();
            t7Byte3Bit3Tb.Text = sliverDataContainer.BrakeRealease.ToString();
            t7Byte3Bit4Tb.Text = sliverDataContainer.BSRLow1.ToString();
            t7Byte3Bit5Tb.Text = sliverDataContainer.ParkBrakeRealease.ToString();
            t7Byte3Bit6Tb.Text = sliverDataContainer.EpState.ToString();
            t7Byte3Bit7Tb.Text = sliverDataContainer.MassSigValid.ToString();

            // 4~5 th. bytes
            t7Byte45Slider.Value = sliverDataContainer.Bcp1Pressure < 0 ? 0 : sliverDataContainer.Bcp1Pressure;

            // 6~7 th. bytes
            t7Byte67Slider.Value = sliverDataContainer.Bcp2Pressure < 0 ? 0 : sliverDataContainer.Bcp2Pressure;
            #endregion

            #region TPDO8 UI

            // 0~1 st. bytes
            t8Byte01Tb.Text = "停放制动缸/总风压力:" + sliverDataContainer.ParkPressure.ToString() + " kpa";

            // 2~3 rd. bytes
            t8Byte23Slider.Value = sliverDataContainer.BrakeCylinderSourcePressure;

            // 4~5 th. bytes
            t8Byte45Slider.Value = sliverDataContainer.MassValue / 1000.0;

            // 6~7 th. bytes
            t8Byte67Slider.Value = sliverDataContainer.ParkPressure;
            #endregion

            #region TPDO9 UI

            // 0~1 st. bytes
            t9Byte01Slider.Value = sliverDataContainer.VldRealPressure;

            // 2~3 rd. bytes
            t9Byte23Tb.Text = "实际空气制动力:" + sliverDataContainer.AbForceValue.ToString() + " kpa";

            // 4~5 th. bytes
            t9Byte45Tb.Text = "空气制动力能力:" + sliverDataContainer.AbCapValue.ToString() + " kpa";
            #endregion

            #region TPDO10 UI

            // 0~1 st. bytes
            t10Byte01Slider.Value = sliverDataContainer.SpeedShaft1;

            // 2~3 rd. bytes
            t10Byte23Slider.Value = sliverDataContainer.SpeedShaft2;

            // 4 th. byte
            t10Byte4Bit0Tb.Text = sliverDataContainer.SpeedShaftEnable1.ToString();
            t10Byte4Bit1Tb.Text = sliverDataContainer.SpeedShaftEnable2.ToString();
            t10Byte4Bit2Tb.Text = sliverDataContainer.HasSlipControl1.ToString();
            t10Byte4Bit3Tb.Text = sliverDataContainer.HasSlipControl2.ToString();
            t10Byte4Bit4Tb.Text = sliverDataContainer.AbControlledBySlip.ToString();

            // 6 th. byte
            t10Byte7Bit3Tb.Text = sliverDataContainer.EmergencyBrakeException.ToString();
            #endregion

            #region 新增
            vldSetupPressureSlider.Value = sliverDataContainer.VldSetupPressure;

            air1PressureSlider.Value = sliverDataContainer.AirSpringPressure1;

            air2PressureSlider.Value = sliverDataContainer.AirSpringPressure2;
            #endregion
        }
 /// <summary>
 /// 更新数据源
 /// </summary>
 /// <param name="sliverDataContainer"></param>
 public void UpdateData(SliverDataContainer sliverDataContainer)
 {
     this.sliverDataContainer = sliverDataContainer;
 }
 private void UpdateSpeedData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
 {
     row_0_column_0_Sp.Content = container_1.SpeedA1Shaft1;
     row_1_column_0_Sp.Content = container_2.SpeedShaft1;
     row_2_column_0_Sp.Content = container_3.SpeedShaft1;
     row_3_column_0_Sp.Content = container_4.SpeedShaft1;
     row_0_column_3_Sp.Content = container_5.SpeedShaft1;
     row_1_column_3_Sp.Content = container_6.SpeedA1Shaft1;
     row_2_column_3_Sp.Content = container_1.RefSpeed;
 }
Beispiel #29
0
        public void UpdateData(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
        {
            this.Antiskid_container_1 = container_1;
            this.Antiskid_container_2 = container_2;
            this.Antiskid_container_3 = container_3;
            this.Antiskid_container_4 = container_4;
            this.Antiskid_container_5 = container_5;
            this.Antiskid_container_6 = container_6;


            ClearDataSource();
            Antiskid_AppendSpeedSource(container_1, container_2, container_3, container_4, container_5, container_6);
            Antiskid_AppendSlipRateSource(container_1, container_2, container_3, container_4, container_5, container_6);  // 2019-12-25
            Antiskid_AppendPressSource(container_1, container_2, container_3, container_4, container_5, container_6);
            Antiskid_AppendWSPSource(container_1, container_2, container_3, container_4, container_5, container_6);

            this.Dispatcher.Invoke(() =>
            {
                Antiskid_UpdateSpeedData(container_1, container_2, container_3, container_4, container_5, container_6);
            });
            this.Dispatcher.Invoke(() =>
            {
                Antiskid_UpdatePressData(container_1, container_2, container_3, container_4, container_5, container_6);
            });
            this.Dispatcher.Invoke(() =>  // 2019-12-25
            {
                Antiskid_UpdateSlipRateData(container_1, container_2, container_3, container_4, container_5, container_6);
            });
            this.Dispatcher.Invoke(() =>
            {
                Antiskid_UpdateWSPData(container_1, container_2, container_3, container_4, container_5, container_6);
            });



            if (queue.Count < X_LENGTH)
            {
                queue.Enqueue(x);
            }
            else
            {
                queue.Dequeue();
                queue.Enqueue(x);
            }
            if (x - X_LENGTH > 0)
            {
                xaxis = (int)(x - X_LENGTH);
            }
            else
            {
                xaxis = 0;
            }
            this.Dispatcher.Invoke(() =>
            {
                Antiskid_speedChart.Viewport.Visible    = new Rect(xaxis, 0, X_LENGTH, SPEED_CHART_Y_MAX);
                Antiskid_pressureChart.Viewport.Visible = new Rect(xaxis, 0, X_LENGTH, PRESS_CHART_Y_MAX);
                Antiskid_wspChart.Viewport.Visible      = new Rect(xaxis, -10, X_LENGTH, Jian_Speed_Y_MAX);
                Antiskid_SlipRateChart.Viewport.Visible = new Rect(xaxis, 0, X_LENGTH, SlipRate_Y_MAX); // 2019-12-25
            });

            x = x + 1;
        }
 private void AppendSpeedSource(MainDevDataContains container_1, SliverDataContainer container_2, SliverDataContainer container_3, SliverDataContainer container_4, SliverDataContainer container_5, MainDevDataContains container_6)
 {
     speed1.AppendAsync(base.Dispatcher, new Point(x, (container_1.SpeedA1Shaft1 + container_1.SpeedA1Shaft2) / 2));
     speed2.AppendAsync(base.Dispatcher, new Point(x, (container_2.SpeedShaft1 + container_2.SpeedShaft2) / 2));
     speed3.AppendAsync(base.Dispatcher, new Point(x, (container_3.SpeedShaft1 + container_3.SpeedShaft2) / 2));
     speed4.AppendAsync(base.Dispatcher, new Point(x, (container_4.SpeedShaft1 + container_4.SpeedShaft2) / 2));
     speed5.AppendAsync(base.Dispatcher, new Point(x, (container_5.SpeedShaft1 + container_5.SpeedShaft2) / 2));
     speed6.AppendAsync(base.Dispatcher, new Point(x, (container_6.SpeedA1Shaft1 + container_6.SpeedA1Shaft2) / 2));
     refSpeed.AppendAsync(base.Dispatcher, new Point(x, container_1.RefSpeed));
 }