예제 #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (equipconfig.Ydjxh.ToLower() == "cdf5000")
     {
         smoke = fla_502.get_DirectData(0.01f);
     }
     else
     {
         if (equipconfig.IsOldMqy200)
         {
             smoke = flb_100.get_DirectData();
         }
         else
         {
             smoke = flb_100.get_Data();
         }
     }
     ydjN            = Math.Round((1 - Math.Exp((double)(equipconfig.YdjL) * 1.0 * Math.Log(1 - smoke.Ns / 100.0) / 430.0)) * 100, 1);
     textBoxN.Text   = ydjN.ToString("0.0");
     textEditNs.Text = smoke.Ns.ToString("0.0");
     textBoxK.Text   = smoke.K.ToString("0.00");
     textBox1.Text   = smoke.Zs.ToString();
 }