Ejemplo n.º 1
0
        private void UpdateChartDetect(HoldingReg hr)
        {
            Point point;

            point = new Point(m_detect_idx, hr.m_hold_reg.sensor_detect);
            m_chart_detect.AppendAsync(base.Dispatcher, point);

            if (hr != null && (hr.m_hold_reg.sensor_id == 1002))
            {
                point = new Point(m_detect_idx, hr.m_hold_reg.sensor_detect2);
                m_chart_detect2.AppendAsync(base.Dispatcher, point);
            }

            m_detect_idx++;
        }
Ejemplo n.º 2
0
        private void UpdateSensorCalibration(HoldingReg hr)
        {
            this.tbDisplay1.Text = hr.m_hold_reg.display[0].ToString();
            this.tbDisplay2.Text = hr.m_hold_reg.display[1].ToString();
            this.tbDisplay3.Text = hr.m_hold_reg.display[2].ToString();
            this.tbDisplay4.Text = hr.m_hold_reg.display[3].ToString();
            this.tbDisplay5.Text = hr.m_hold_reg.display[4].ToString();
            this.tbDisplay6.Text = hr.m_hold_reg.display[5].ToString();
            this.tbDisplay7.Text = hr.m_hold_reg.display[6].ToString();

            this.tbDetect1.Text = hr.m_hold_reg.detect[0].ToString();
            this.tbDetect2.Text = hr.m_hold_reg.detect[1].ToString();
            this.tbDetect3.Text = hr.m_hold_reg.detect[2].ToString();
            this.tbDetect4.Text = hr.m_hold_reg.detect[3].ToString();
            this.tbDetect5.Text = hr.m_hold_reg.detect[4].ToString();
            this.tbDetect6.Text = hr.m_hold_reg.detect[5].ToString();
            this.tbDetect7.Text = hr.m_hold_reg.detect[6].ToString();

            this.tbDetectCalibration.Text = hr.m_hold_reg.detect_calibration.ToString();
            this.tbCalibrationNum.Text    = hr.m_hold_reg.calibration_num.ToString();
        }
Ejemplo n.º 3
0
 private void UpdateSensorValue(HoldingReg hr)
 {
     this.tbDisplayValue.Text = hr.m_hold_reg.sensor_value.ToString();
     this.tbDetectValue1.Text = hr.m_hold_reg.sensor_detect.ToString();
     this.tbDetectValue2.Text = hr.m_hold_reg.sensor_detect2.ToString();
 }