コード例 #1
0
 private void btn_LVDC_QUERY_Click(object sender, System.EventArgs e)
 {
     try
     {
         if (!this.gLineTestProcessor.bIsConnSuccFlag)
         {
             MessageBox.Show("设备未连接!", "提示", MessageBoxButtons.OK);
         }
         else
         {
             double dTemp = System.Convert.ToDouble(this.numericUpDown_LV_DC.Value);
             this.gLineTestProcessor.DYCL_LVDCFunc(dTemp * 100.0, 2000.0);
             System.Threading.Thread.Sleep(500);
             this.label_QTC.Text               = "查询计时: 0 秒";
             this.timer_r.Enabled              = true;
             this.iTimeCount                   = 0;
             this.iQueryType                   = 2;
             this.bSuccFlag                    = false;
             this.textBox_LVDC_RV.Text         = "";
             this.gLineTestProcessor.mbKeepRun = true;
             this.gLineTestProcessor.mpDevComm.mParseCmd.bLVDC_RFlag = false;
             KLineTestProcessor this2 = this.gLineTestProcessor;
             this2.mpDevComm.mParseCmd.dLVDC_Value = 0.0;
             this2.DYCL_LVDC_QUERYFunc();
         }
     }
     catch (System.Exception arg_E8_0)
     {
         KLineTestProcessor.ExceptionRecordFunc(arg_E8_0.StackTrace);
     }
 }