示例#1
0
 private void timer_Tick(object sender, EventArgs e)
 {
     if (Properties.Config.Default.Type == 'V')
     {
         val = Measure.GetVoltage();
         SetVoltage(val);
         fp.AddPoint(DateTime.Now, val);
     }
     else
     {
         val = Measure.GetTemperature();
         fp.AddPoint(DateTime.Now, val);
         SetTemperature((int)val);
     }
     UpdateRelativeError();
 }
示例#2
0
 private void timer_Tick(object sender, EventArgs e)
 {
     val = Measure.GetVoltage();
     fp.AddPoint(DateTime.Now, val);
 }