예제 #1
0
 private void ShowValue(double value)
 {
     // All missing modes do not require any special code.  They can just directly bind to [Value]
     switch (Mode)
     {
     case ControlMode.Position:
     case ControlMode.Speed:
     case ControlMode.Current:
         lock (syncRoot)
         {
             OutputPoints.Add(new OxyPlot.DataPoint(OutputPoints.Count, value));
             SetpointLine.Add(new OxyPlot.DataPoint(SetpointLine.Count, Setpoint));
         }
         break;
     }
 }