コード例 #1
0
        private void updateTemperature(double time, double T)
        {
            chrtTemperatureProfile.Series[1].Points.AddXY(time, T);

            EventHandler <SetPointChangedEventArgs> handler = TemperatureSetPointChanged;

            if (handler != null)
            {
                SetPointChangedEventArgs e = new SetPointChangedEventArgs();
                e.T = T;
                handler(this, e);
            }
            if (pid_Tset != null && !Double.IsNaN(T) && T > 0)
            {
                pid_Tset.setTemperature(T);
            }
        }
コード例 #2
0
 public void setTemperatureUpdated(object sender, SetPointChangedEventArgs e)
 {
     additionalData.Clear();
     additionalData.Add(e.T);
 }