public void SavePoint(Point3D p) { Data.AddPoint(p); }
private void OnDataReceived(object sender, DataReceivedEventArgs args) { var y = CustomSettings.Y1Transform.Call(args.Value); var point = new Point3D(count * 1e-3 * Settings.MeasurementPeriod, y); Chart.AddPoint(point); Data.SavePoint(point); count++; }
private void OnDataReceived(object sender, DataReceivedEventArgs args) { var y = CustomSettings.Y1Transform.Call(args.Value); point = new Point3D(count * 1e-3 * Settings.MeasurementPeriod, y); Tsu.Voltmeters.Appa.DataReceivedEventArgs res = appa109N.ReadValue(); var z = CustomSettings.Y2Transform.Call(res.Value); point.Z = z; Chart.AddPoint(point); Data.SavePoint(point); count++; }
public void AddPoint(Point3D point) { if (AutoScroll && y1List.Count >= DotsPerFrame) { y1List.RemoveAt(0); } if (point.Z != null) { if (AutoScroll && y2List.Count >= DotsPerFrame) { y2List.RemoveAt(0); } var z = (double) point.Z; switch (PlotMode) { case PlotModes.Y1AndY2: myPane.CurveList[0].AddPoint(point.X, point.Y); myPane.CurveList[1].AddPoint(point.X, z); break; case PlotModes.Y1OfY2: myPane.CurveList[0].AddPoint(z, point.Y); break; case PlotModes.Y2OfY1: myPane.CurveList[0].AddPoint(point.Y, z); break; } } else { myPane.CurveList[0].AddPoint(point.X, point.Y); } Chart.AxisChange(); Chart.Refresh(); }
private void OnDataReceived(object sender, EventArgs e) { c++; double t = c * Settings.MeasurementPeriod/1000.0; var p = new Point3D(t, CustomSettings.Y1Transform.Call(t), CustomSettings.Y2Transform.Call(t)); Chart.AddPoint(p); Data.SavePoint(p); }
public void SavePoint(Point3D p) { Data.AddPoint(p); Debug.Assert(!tempFileName.IsNullOrEmpty(), "Путь к временному файлу не определён."); File.AppendAllText(tempFileName, p + "\n"); }