示例#1
0
 public void SavePoint(Point3D p)
 {
     Data.AddPoint(p);
 }
示例#2
0
 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++;
 }
示例#3
0
 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++;
 }
示例#4
0
        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();
        }
示例#5
0
 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);
 }
示例#6
0
 public void SavePoint(Point3D p)
 {
     Data.AddPoint(p);
     Debug.Assert(!tempFileName.IsNullOrEmpty(), "Путь к временному файлу не определён.");
     File.AppendAllText(tempFileName, p + "\n");
 }