/// <summary> /// 波形显示中一个点的坐标转换为数据值 /// </summary> /// <param name="x">要转换的点的X轴坐标</param> /// <param name="y">要转换的点的Y轴坐标</param> /// <param name="outX">转换后的X轴坐标</param> /// <param name="outY">转换后的Y轴坐标</param> private void _changeXYPointsToNum(ScatterGraph graph, float x, float y, ref double outX, ref double outY) { Point point = new Point((int)x, (int)y); PointF pointf = graph.PointToVirtual(point); outX = (graph.XAxes[0].Range.Maximum - graph.XAxes[0].Range.Minimum) * pointf.X + graph.XAxes[0].Range.Minimum; outY = (graph.YAxes[0].Range.Maximum - graph.YAxes[0].Range.Minimum) * pointf.Y + graph.YAxes[0].Range.Minimum; }
private void graph4_MouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right && ModifierKeys == Keys.None) { ScatterGraph graph = sender as ScatterGraph; selectedGraph = graph; contextMenuStrip3.Show(Cursor.Position); } else contextMenuStrip3.Hide(); }
/// <summary> /// 波形显示中矩形区域的坐标转换为数据值百分比 /// </summary> /// <param name="xB">矩形区域左上角X轴坐标</param> /// <param name="xE">矩形区域右下角X轴坐标</param> /// <param name="yB">矩形区域左上角Y轴坐标</param> /// <param name="yE">矩形区域右下角Y轴坐标</param> /// <param name="outxB">转换后的左上角X轴坐标值</param> /// <param name="outxE">转换后的右下角X轴坐标值</param> /// <param name="outyB">转换后的左上角Y轴坐标值</param> /// <param name="outyE">转换后的右下角Y轴坐标值</param> private void _changeXYPointsToNum(ScatterGraph graph, float xB, float xE, float yB, float yE, ref double outxB, ref double outxE, ref double outyB, ref double outyE) { _changeXYPointsToNum(graph, xB, yB, ref outxB, ref outyB); _changeXYPointsToNum(graph, xE, yE, ref outxE, ref outyE); outxB = Math.Round(outxB, MidpointRounding.AwayFromZero); outxE = Math.Round(outxE, MidpointRounding.AwayFromZero); outyB = Math.Round(outyB, MidpointRounding.AwayFromZero); outyE = Math.Round(outyE, MidpointRounding.AwayFromZero); }
/// <summary> /// Generic controller for NI scatter graphs using datSrv as an input. /// <author> Jon Newman</author> /// </summary> /// <param name="analogScatterGraph"></param> public ScatterGraphController(ref ScatterGraph analogScatterGraph) { this.analogScatterGraph = analogScatterGraph; for (int i = 0; i < analogScatterGraph.Plots.Count; ++i) { // Plot options analogScatterGraph.Plots[i].CanScaleYAxis = false; analogScatterGraph.Plots[i].CanScaleXAxis = false; analogScatterGraph.Plots[i].AntiAliased = true; // Set capacity analogScatterGraph.Plots[i].HistoryCapacity = (int)_numSampToPlot; } }
/// <summary> /// 设置图表样式 /// </summary> /// <param name="styleName"></param> private void setGraphStyle(ScatterGraph graph) { #region X轴样式 //网格线 xAxis_Looking.MajorDivisions.GridVisible = _isLinesShowXY; xAxis_Looking.MajorDivisions.LabelForeColor = _coordinateStringColor; xAxis_Looking.MajorDivisions.GridColor = _MajorLineLineShowColor; //副网格线 xAxis_Looking.MinorDivisions.GridVisible = _isLinesShowXY; xAxis_Looking.MinorDivisions.GridColor = _MinorLineLineShowColor; #endregion #region Y轴样式 if (_当前显示模式 == "潜水泵性能试验") { Graph_View.YAxes[0].MajorDivisions.GridVisible = _isLinesShowXY; Graph_View.YAxes[0].MajorDivisions.GridColor = _MajorLineLineShowColor; return; } foreach (NationalInstruments.UI.YAxis y in this.Graph_View.YAxes) { //网格线 y.MajorDivisions.GridVisible = false; //副网格线 y.MinorDivisions.GridVisible = false; if (y.Visible) { //网格线 y.MajorDivisions.GridVisible = _isLinesShowXY; foreach (ScatterPlot item in Graph_View.Plots) { if (item.YAxis == y) { y.MajorDivisions.LabelForeColor = item.LineColor; break; } } y.MajorDivisions.GridColor = _MajorLineLineShowColor; //副网格线 y.MinorDivisions.GridVisible = _isLinesShowXY; y.MinorDivisions.GridColor = _MinorLineLineShowColor; } } #endregion }
public void displaySidebandData628V1(ScatterGraph graph, double[] xvals, double[] data) { scatterGraphPlot(graph, scatterPlot2, xvals, data); }
protected override void ImplementUserControl() { ScatterGraph scatterGraph = new ScatterGraph(); ScatterPlot scatterPlot = new ScatterPlot(); XAxis xAxis = new XAxis(); YAxis yAxis = new YAxis(); scatterGraph.Border = NationalInstruments.UI.Border.Raised; scatterGraph.Location = new System.Drawing.Point(83, 52); scatterGraph.Name = "scatterGraph"; scatterGraph.PlotAreaBorder = NationalInstruments.UI.Border.ThinFrame3D; scatterGraph.Plots.AddRange(new NationalInstruments.UI.ScatterPlot[] { scatterPlot}); scatterGraph.Size = new System.Drawing.Size(272, 168); scatterGraph.TabIndex = 0; scatterGraph.UseColorGenerator = true; scatterGraph.XAxes.AddRange(new NationalInstruments.UI.XAxis[] { xAxis}); scatterGraph.YAxes.AddRange(new NationalInstruments.UI.YAxis[] { yAxis}); scatterPlot.XAxis = xAxis; scatterPlot.YAxis = yAxis; controlHandle = scatterGraph; InitControl(controlHandle); initContextMenuStrip(); }
private void scatterGraphPlot(ScatterGraph graph, ScatterPlot plot, double[] x, double[] y) { graph.Invoke(new plotScatterGraphDelegate(plotScatterGraphHelper), new object[] {plot, x, y }); }
public static void ScatterGraphPlot(ScatterGraph graph, ScatterPlot plot, double[] x, double[] y) { graph.Invoke(new UIHelper.ScatterGraphPlotDelegate(ScatterGraphPlotHelper), new object[] { plot, x, y }); }
private void graph_MouseDoubleClick(object sender, MouseEventArgs e) { ScatterGraph graph = sender as ScatterGraph; graph.ResetZoomPan(); }
public void displaySidebandData628Slowing(ScatterGraph graph, double[] xvals, double[] data) { scatterGraphPlot(graph, scatterPlot6, xvals, data); }
public void displaySidebandData531(ScatterGraph graph, double[] xvals, double[] data) { scatterGraphPlot(graph, scatterPlot5, xvals, data); }
private void scatterGraphPlot(ScatterGraph graph, ScatterPlot plot, double[] x, double[] y) { graph.Invoke(new plotScatterGraphDelegate(plotScatterGraphHelper), new object[] { plot, x, y }); }
/** Creates the user interface -- grabbed from Form builder */ void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ChartsPanel)); this.m_chart0 = new NationalInstruments.UI.WindowsForms.ScatterGraph(); this.ScatterPlot1 = new NationalInstruments.UI.ScatterPlot(); this.xAxis1 = new NationalInstruments.UI.XAxis(); this.yAxis1 = new NationalInstruments.UI.YAxis(); this.m_chart1 = new NationalInstruments.UI.WindowsForms.ScatterGraph(); this.ScatterPlot2 = new NationalInstruments.UI.ScatterPlot(); this.xAxis2 = new NationalInstruments.UI.XAxis(); this.yAxis2 = new NationalInstruments.UI.YAxis(); this.m_chart2 = new NationalInstruments.UI.WindowsForms.ScatterGraph(); this.ScatterPlot3 = new NationalInstruments.UI.ScatterPlot(); this.xAxis3 = new NationalInstruments.UI.XAxis(); this.yAxis3 = new NationalInstruments.UI.YAxis(); this.m_legendGrid = new AxMSFlexGridLib.AxMSFlexGrid(); ((System.ComponentModel.ISupportInitialize)(this.m_chart0)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_chart1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_chart2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_legendGrid)).BeginInit(); this.SuspendLayout(); // // m_chart0 // this.m_chart0.Location = new System.Drawing.Point(233, 17); this.m_chart0.Name = "m_chart0"; this.m_chart0.PlotAreaColor = System.Drawing.Color.White; this.m_chart0.Plots.AddRange(new NationalInstruments.UI.ScatterPlot[] { this.ScatterPlot1}); this.m_chart0.SelectionColor = System.Drawing.Color.Gold; this.m_chart0.Size = new System.Drawing.Size(352, 96); this.m_chart0.TabIndex = 0; this.m_chart0.XAxes.AddRange(new NationalInstruments.UI.XAxis[] { this.xAxis1}); this.m_chart0.YAxes.AddRange(new NationalInstruments.UI.YAxis[] { this.yAxis1}); // // ScatterPlot1 // this.ScatterPlot1.LineWidth = 2F; this.ScatterPlot1.PointColor = System.Drawing.Color.Goldenrod; this.ScatterPlot1.PointStyle = NationalInstruments.UI.PointStyle.SolidCircle; this.ScatterPlot1.XAxis = this.xAxis1; this.ScatterPlot1.YAxis = this.yAxis1; // // xAxis1 // this.xAxis1.MajorDivisions.GridColor = System.Drawing.Color.Gray; this.xAxis1.MajorDivisions.GridVisible = true; this.xAxis1.MajorDivisions.LabelFormat = new NationalInstruments.UI.FormatString(NationalInstruments.UI.FormatStringMode.DateTime, "MM/dd/yy hh:mm:ss"); this.xAxis1.MinorDivisions.GridColor = System.Drawing.Color.LightGray; this.xAxis1.MinorDivisions.GridVisible = true; this.xAxis1.Mode = NationalInstruments.UI.AxisMode.AutoScaleExact; // // yAxis1 // this.yAxis1.MajorDivisions.GridColor = System.Drawing.Color.Gainsboro; this.yAxis1.MajorDivisions.GridVisible = true; this.yAxis1.Mode = NationalInstruments.UI.AxisMode.AutoScaleExact; // // m_chart1 // this.m_chart1.Location = new System.Drawing.Point(125, 17); this.m_chart1.Name = "m_chart1"; this.m_chart1.PlotAreaColor = System.Drawing.Color.White; this.m_chart1.Plots.AddRange(new NationalInstruments.UI.ScatterPlot[] { this.ScatterPlot2}); this.m_chart1.SelectionColor = System.Drawing.Color.Gold; this.m_chart1.Size = new System.Drawing.Size(352, 96); this.m_chart1.TabIndex = 2; this.m_chart1.XAxes.AddRange(new NationalInstruments.UI.XAxis[] { this.xAxis2}); this.m_chart1.YAxes.AddRange(new NationalInstruments.UI.YAxis[] { this.yAxis2}); // // ScatterPlot2 // this.ScatterPlot2.LineColor = System.Drawing.Color.LimeGreen; this.ScatterPlot2.LineWidth = 2F; this.ScatterPlot2.PointColor = System.Drawing.Color.Goldenrod; this.ScatterPlot2.PointStyle = NationalInstruments.UI.PointStyle.SolidCircle; this.ScatterPlot2.XAxis = this.xAxis2; this.ScatterPlot2.YAxis = this.yAxis2; // // xAxis2 // this.xAxis2.MajorDivisions.GridColor = System.Drawing.Color.Gray; this.xAxis2.MajorDivisions.GridVisible = true; this.xAxis2.MajorDivisions.LabelFormat = new NationalInstruments.UI.FormatString(NationalInstruments.UI.FormatStringMode.Numeric, "F3"); this.xAxis2.MinorDivisions.GridColor = System.Drawing.Color.LightGray; this.xAxis2.MinorDivisions.GridVisible = true; this.xAxis2.Mode = NationalInstruments.UI.AxisMode.AutoScaleExact; // // yAxis2 // this.yAxis2.MajorDivisions.GridColor = System.Drawing.Color.Gainsboro; this.yAxis2.MajorDivisions.GridVisible = true; this.yAxis2.Mode = NationalInstruments.UI.AxisMode.AutoScaleExact; // // m_chart2 // this.m_chart2.Location = new System.Drawing.Point(341, 17); this.m_chart2.Name = "m_chart2"; this.m_chart2.PlotAreaColor = System.Drawing.Color.White; this.m_chart2.Plots.AddRange(new NationalInstruments.UI.ScatterPlot[] { this.ScatterPlot3}); this.m_chart2.SelectionColor = System.Drawing.Color.Gold; this.m_chart2.Size = new System.Drawing.Size(352, 96); this.m_chart2.TabIndex = 8; this.m_chart2.XAxes.AddRange(new NationalInstruments.UI.XAxis[] { this.xAxis3}); this.m_chart2.YAxes.AddRange(new NationalInstruments.UI.YAxis[] { this.yAxis3}); // // ScatterPlot3 // this.ScatterPlot3.LineWidth = 2F; this.ScatterPlot3.PointColor = System.Drawing.Color.Goldenrod; this.ScatterPlot3.PointStyle = NationalInstruments.UI.PointStyle.SolidCircle; this.ScatterPlot3.XAxis = this.xAxis3; this.ScatterPlot3.YAxis = this.yAxis3; // // xAxis3 // this.xAxis3.MajorDivisions.GridColor = System.Drawing.Color.Gray; this.xAxis3.MajorDivisions.GridVisible = true; this.xAxis3.MajorDivisions.LabelFormat = new NationalInstruments.UI.FormatString(NationalInstruments.UI.FormatStringMode.Numeric, "F3"); this.xAxis3.MinorDivisions.GridColor = System.Drawing.Color.LightGray; this.xAxis3.MinorDivisions.GridVisible = true; this.xAxis3.Mode = NationalInstruments.UI.AxisMode.AutoScaleExact; // // yAxis3 // this.yAxis3.MajorDivisions.GridColor = System.Drawing.Color.Gainsboro; this.yAxis3.MajorDivisions.GridVisible = true; this.yAxis3.Mode = NationalInstruments.UI.AxisMode.AutoScaleExact; // // m_legendGrid // this.m_legendGrid.Dock = System.Windows.Forms.DockStyle.Right; this.m_legendGrid.Location = new System.Drawing.Point(160, 0); this.m_legendGrid.Name = "m_legendGrid"; this.m_legendGrid.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("m_legendGrid.OcxState"))); this.m_legendGrid.Size = new System.Drawing.Size(40, 100); this.m_legendGrid.TabIndex = 9; // // ChartsPanel // this.Controls.Add(this.m_chart2); this.Controls.Add(this.m_legendGrid); this.Controls.Add(this.m_chart1); this.Controls.Add(this.m_chart0); ((System.ComponentModel.ISupportInitialize)(this.m_chart0)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_chart1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_chart2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_legendGrid)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TweakViewerWindow)); this.pmtXAxis = new NationalInstruments.UI.XAxis(); this.xAxis5 = new NationalInstruments.UI.XAxis(); this.differenceYAxis = new NationalInstruments.UI.YAxis(); this.differenceGraph = new NationalInstruments.UI.WindowsForms.ScatterGraph(); this.differencePlot = new NationalInstruments.UI.ScatterPlot(); this.differenceAvgPlot = new NationalInstruments.UI.ScatterPlot(); this.tofGraph = new NationalInstruments.UI.WindowsForms.WaveformGraph(); this.tofLowCursor = new NationalInstruments.UI.XYCursor(); this.tofOnAveragePlot = new NationalInstruments.UI.WaveformPlot(); this.xAxis4 = new NationalInstruments.UI.XAxis(); this.tofAvgYAxis = new NationalInstruments.UI.YAxis(); this.tofHighCursor = new NationalInstruments.UI.XYCursor(); this.tofOnPlot = new NationalInstruments.UI.WaveformPlot(); this.tofYAxis = new NationalInstruments.UI.YAxis(); this.tofOffPlot = new NationalInstruments.UI.WaveformPlot(); this.tofOffAveragePlot = new NationalInstruments.UI.WaveformPlot(); this.tofFitPlot = new NationalInstruments.UI.WaveformPlot(); this.tofFitModeCombo = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.tofFitFunctionCombo = new System.Windows.Forms.ComboBox(); this.tofFitResultsLabel = new System.Windows.Forms.Label(); this.updateTOFFitButton = new System.Windows.Forms.Button(); this.tofFitDataSelectCombo = new System.Windows.Forms.ComboBox(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.statusBar2 = new System.Windows.Forms.StatusBar(); this.defaultGateButton = new System.Windows.Forms.Button(); this.statusBar1 = new System.Windows.Forms.StatusBar(); this.OnAvTextBox = new System.Windows.Forms.TextBox(); this.OnErrTextBox = new System.Windows.Forms.TextBox(); this.OffAvTextBox = new System.Windows.Forms.TextBox(); this.OffErrTextBox = new System.Windows.Forms.TextBox(); this.asymTextBox = new System.Windows.Forms.TextBox(); this.asymErrTextBox = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.pmtFitPlot = new NationalInstruments.UI.ScatterPlot(); this.xAxis3 = new NationalInstruments.UI.XAxis(); this.pmtYAxis = new NationalInstruments.UI.YAxis(); this.pmtOffAvgPlot = new NationalInstruments.UI.ScatterPlot(); this.pmtOnAvgPlot = new NationalInstruments.UI.ScatterPlot(); this.pmtOffPlot = new NationalInstruments.UI.ScatterPlot(); this.pmtOnPlot = new NationalInstruments.UI.ScatterPlot(); this.pmtHighCursor = new NationalInstruments.UI.XYCursor(); this.pmtLowCursor = new NationalInstruments.UI.XYCursor(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.resetButton = new System.Windows.Forms.Button(); this.pmtGraph = new NationalInstruments.UI.WindowsForms.ScatterGraph(); this.xyCursor1 = new NationalInstruments.UI.XYCursor(); this.scatterPlot1 = new NationalInstruments.UI.ScatterPlot(); this.xAxis1 = new NationalInstruments.UI.XAxis(); this.yAxis1 = new NationalInstruments.UI.YAxis(); this.xyCursor2 = new NationalInstruments.UI.XYCursor(); this.scatterPlot2 = new NationalInstruments.UI.ScatterPlot(); this.scatterPlot3 = new NationalInstruments.UI.ScatterPlot(); this.scatterPlot4 = new NationalInstruments.UI.ScatterPlot(); this.scatterPlot5 = new NationalInstruments.UI.ScatterPlot(); ((System.ComponentModel.ISupportInitialize)(this.differenceGraph)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tofGraph)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tofLowCursor)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tofHighCursor)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pmtHighCursor)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pmtLowCursor)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pmtGraph)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xyCursor1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xyCursor2)).BeginInit(); this.SuspendLayout(); // // pmtXAxis // this.pmtXAxis.Mode = NationalInstruments.UI.AxisMode.Fixed; // // xAxis5 // this.xAxis5.CaptionBackColor = System.Drawing.SystemColors.ControlLight; this.xAxis5.Mode = NationalInstruments.UI.AxisMode.Fixed; // // differenceYAxis // this.differenceYAxis.CaptionBackColor = System.Drawing.SystemColors.ControlLight; // // differenceGraph // this.differenceGraph.Location = new System.Drawing.Point(8, 304); this.differenceGraph.Name = "differenceGraph"; this.differenceGraph.Plots.AddRange(new NationalInstruments.UI.ScatterPlot[] { this.differencePlot, this.differenceAvgPlot}); this.differenceGraph.Size = new System.Drawing.Size(352, 280); this.differenceGraph.TabIndex = 15; this.differenceGraph.XAxes.AddRange(new NationalInstruments.UI.XAxis[] { this.xAxis5}); this.differenceGraph.YAxes.AddRange(new NationalInstruments.UI.YAxis[] { this.differenceYAxis}); // // differencePlot // this.differencePlot.LineStyle = NationalInstruments.UI.LineStyle.None; this.differencePlot.PointColor = System.Drawing.Color.Lime; this.differencePlot.PointStyle = NationalInstruments.UI.PointStyle.Cross; this.differencePlot.XAxis = this.xAxis5; this.differencePlot.YAxis = this.differenceYAxis; // // differenceAvgPlot // this.differenceAvgPlot.LineColor = System.Drawing.Color.Red; this.differenceAvgPlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.differenceAvgPlot.XAxis = this.xAxis5; this.differenceAvgPlot.YAxis = this.differenceYAxis; // // tofGraph // this.tofGraph.Cursors.AddRange(new NationalInstruments.UI.XYCursor[] { this.tofLowCursor, this.tofHighCursor}); this.tofGraph.Location = new System.Drawing.Point(8, 8); this.tofGraph.Name = "tofGraph"; this.tofGraph.Plots.AddRange(new NationalInstruments.UI.WaveformPlot[] { this.tofOnPlot, this.tofOffPlot, this.tofOnAveragePlot, this.tofOffAveragePlot, this.tofFitPlot}); this.tofGraph.Size = new System.Drawing.Size(352, 280); this.tofGraph.TabIndex = 16; this.tofGraph.XAxes.AddRange(new NationalInstruments.UI.XAxis[] { this.xAxis4}); this.tofGraph.YAxes.AddRange(new NationalInstruments.UI.YAxis[] { this.tofYAxis, this.tofAvgYAxis}); // // tofLowCursor // this.tofLowCursor.HorizontalCrosshairMode = NationalInstruments.UI.CursorCrosshairMode.None; this.tofLowCursor.LabelVisible = true; this.tofLowCursor.LabelXFormat = new NationalInstruments.UI.FormatString(NationalInstruments.UI.FormatStringMode.Numeric, "G3"); this.tofLowCursor.LabelYFormat = new NationalInstruments.UI.FormatString(NationalInstruments.UI.FormatStringMode.Numeric, "G3"); this.tofLowCursor.Plot = this.tofOnAveragePlot; this.tofLowCursor.SnapMode = NationalInstruments.UI.CursorSnapMode.Floating; this.tofLowCursor.AfterMove += new NationalInstruments.UI.AfterMoveXYCursorEventHandler(this.TOFCursorMoved); // // tofOnAveragePlot // this.tofOnAveragePlot.LineColor = System.Drawing.Color.Red; this.tofOnAveragePlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.tofOnAveragePlot.XAxis = this.xAxis4; this.tofOnAveragePlot.YAxis = this.tofAvgYAxis; // // tofAvgYAxis // this.tofAvgYAxis.Position = NationalInstruments.UI.YAxisPosition.Right; // // tofHighCursor // this.tofHighCursor.Color = System.Drawing.Color.Lime; this.tofHighCursor.HorizontalCrosshairMode = NationalInstruments.UI.CursorCrosshairMode.None; this.tofHighCursor.LabelVisible = true; this.tofHighCursor.LabelXFormat = new NationalInstruments.UI.FormatString(NationalInstruments.UI.FormatStringMode.Numeric, "G3"); this.tofHighCursor.LabelYFormat = new NationalInstruments.UI.FormatString(NationalInstruments.UI.FormatStringMode.Numeric, "G3"); this.tofHighCursor.Plot = this.tofOnAveragePlot; this.tofHighCursor.SnapMode = NationalInstruments.UI.CursorSnapMode.Floating; this.tofHighCursor.AfterMove += new NationalInstruments.UI.AfterMoveXYCursorEventHandler(this.TOFCursorMoved); // // tofOnPlot // this.tofOnPlot.LineColor = System.Drawing.Color.Blue; this.tofOnPlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.tofOnPlot.LineStyle = NationalInstruments.UI.LineStyle.None; this.tofOnPlot.PointStyle = NationalInstruments.UI.PointStyle.Plus; this.tofOnPlot.XAxis = this.xAxis4; this.tofOnPlot.YAxis = this.tofYAxis; // // tofOffPlot // this.tofOffPlot.LineStyle = NationalInstruments.UI.LineStyle.None; this.tofOffPlot.PointColor = System.Drawing.Color.LawnGreen; this.tofOffPlot.PointStyle = NationalInstruments.UI.PointStyle.Plus; this.tofOffPlot.XAxis = this.xAxis4; this.tofOffPlot.YAxis = this.tofYAxis; // // tofOffAveragePlot // this.tofOffAveragePlot.LineColor = System.Drawing.Color.PowderBlue; this.tofOffAveragePlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.tofOffAveragePlot.XAxis = this.xAxis4; this.tofOffAveragePlot.YAxis = this.tofAvgYAxis; // // tofFitPlot // this.tofFitPlot.LineColor = System.Drawing.Color.Silver; this.tofFitPlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.tofFitPlot.LineStyle = NationalInstruments.UI.LineStyle.DashDot; this.tofFitPlot.LineWidth = 2F; this.tofFitPlot.XAxis = this.xAxis4; this.tofFitPlot.YAxis = this.tofAvgYAxis; // // tofFitModeCombo // this.tofFitModeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.tofFitModeCombo.Items.AddRange(new object[] { "off", "average"}); this.tofFitModeCombo.Location = new System.Drawing.Point(64, 605); this.tofFitModeCombo.Name = "tofFitModeCombo"; this.tofFitModeCombo.Size = new System.Drawing.Size(72, 21); this.tofFitModeCombo.TabIndex = 17; this.tofFitModeCombo.SelectedIndexChanged += new System.EventHandler(this.tofFitModeCombo_SelectedIndexChanged); // // label1 // this.label1.Location = new System.Drawing.Point(6, 584); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(48, 23); this.label1.TabIndex = 18; this.label1.Text = "Fit TOF:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // tofFitFunctionCombo // this.tofFitFunctionCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.tofFitFunctionCombo.Location = new System.Drawing.Point(142, 605); this.tofFitFunctionCombo.Name = "tofFitFunctionCombo"; this.tofFitFunctionCombo.Size = new System.Drawing.Size(88, 21); this.tofFitFunctionCombo.TabIndex = 19; this.tofFitFunctionCombo.SelectedIndexChanged += new System.EventHandler(this.tofFitFunctionCombo_SelectedIndexChanged); // // tofFitResultsLabel // this.tofFitResultsLabel.ForeColor = System.Drawing.Color.Blue; this.tofFitResultsLabel.Location = new System.Drawing.Point(260, 602); this.tofFitResultsLabel.Name = "tofFitResultsLabel"; this.tofFitResultsLabel.Size = new System.Drawing.Size(100, 24); this.tofFitResultsLabel.TabIndex = 23; this.tofFitResultsLabel.Text = "..."; this.tofFitResultsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // updateTOFFitButton // this.updateTOFFitButton.Location = new System.Drawing.Point(236, 603); this.updateTOFFitButton.Name = "updateTOFFitButton"; this.updateTOFFitButton.Size = new System.Drawing.Size(18, 23); this.updateTOFFitButton.TabIndex = 25; this.updateTOFFitButton.Text = ">"; this.updateTOFFitButton.UseVisualStyleBackColor = true; this.updateTOFFitButton.Click += new System.EventHandler(this.updateTOFFitButton_Click); // // tofFitDataSelectCombo // this.tofFitDataSelectCombo.FormattingEnabled = true; this.tofFitDataSelectCombo.Items.AddRange(new object[] { "On", "Off"}); this.tofFitDataSelectCombo.Location = new System.Drawing.Point(8, 605); this.tofFitDataSelectCombo.Name = "tofFitDataSelectCombo"; this.tofFitDataSelectCombo.Size = new System.Drawing.Size(50, 21); this.tofFitDataSelectCombo.TabIndex = 27; // // splitContainer1 // this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Bottom; this.splitContainer1.Location = new System.Drawing.Point(0, 636); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.splitContainer2); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.statusBar1); this.splitContainer1.Size = new System.Drawing.Size(970, 23); this.splitContainer1.SplitterDistance = 371; this.splitContainer1.TabIndex = 30; // // splitContainer2 // this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer2.Location = new System.Drawing.Point(0, 0); this.splitContainer2.Name = "splitContainer2"; // // splitContainer2.Panel1 // this.splitContainer2.Panel1.Controls.Add(this.statusBar2); // // splitContainer2.Panel2 // this.splitContainer2.Panel2.Controls.Add(this.defaultGateButton); this.splitContainer2.Size = new System.Drawing.Size(371, 23); this.splitContainer2.SplitterDistance = 236; this.splitContainer2.TabIndex = 0; // // statusBar2 // this.statusBar2.Location = new System.Drawing.Point(0, 0); this.statusBar2.Name = "statusBar2"; this.statusBar2.Size = new System.Drawing.Size(236, 23); this.statusBar2.SizingGrip = false; this.statusBar2.TabIndex = 32; this.statusBar2.Text = "Ready"; // // defaultGateButton // this.defaultGateButton.Location = new System.Drawing.Point(3, 0); this.defaultGateButton.Name = "defaultGateButton"; this.defaultGateButton.Size = new System.Drawing.Size(120, 23); this.defaultGateButton.TabIndex = 26; this.defaultGateButton.Text = "Default Gate"; this.defaultGateButton.UseVisualStyleBackColor = true; this.defaultGateButton.Click += new System.EventHandler(this.defaultGateButton_Click); // // statusBar1 // this.statusBar1.Location = new System.Drawing.Point(0, 0); this.statusBar1.Name = "statusBar1"; this.statusBar1.Size = new System.Drawing.Size(595, 23); this.statusBar1.SizingGrip = false; this.statusBar1.TabIndex = 14; this.statusBar1.Text = "Ready"; // // OnAvTextBox // this.OnAvTextBox.BackColor = System.Drawing.SystemColors.ControlLight; this.OnAvTextBox.Location = new System.Drawing.Point(392, 91); this.OnAvTextBox.Name = "OnAvTextBox"; this.OnAvTextBox.ReadOnly = true; this.OnAvTextBox.Size = new System.Drawing.Size(100, 20); this.OnAvTextBox.TabIndex = 31; // // OnErrTextBox // this.OnErrTextBox.BackColor = System.Drawing.SystemColors.ControlLight; this.OnErrTextBox.Location = new System.Drawing.Point(516, 91); this.OnErrTextBox.Name = "OnErrTextBox"; this.OnErrTextBox.ReadOnly = true; this.OnErrTextBox.Size = new System.Drawing.Size(100, 20); this.OnErrTextBox.TabIndex = 32; // // OffAvTextBox // this.OffAvTextBox.BackColor = System.Drawing.SystemColors.ControlLight; this.OffAvTextBox.Location = new System.Drawing.Point(392, 133); this.OffAvTextBox.Name = "OffAvTextBox"; this.OffAvTextBox.ReadOnly = true; this.OffAvTextBox.Size = new System.Drawing.Size(100, 20); this.OffAvTextBox.TabIndex = 33; // // OffErrTextBox // this.OffErrTextBox.BackColor = System.Drawing.SystemColors.ControlLight; this.OffErrTextBox.Location = new System.Drawing.Point(516, 133); this.OffErrTextBox.Name = "OffErrTextBox"; this.OffErrTextBox.ReadOnly = true; this.OffErrTextBox.Size = new System.Drawing.Size(100, 20); this.OffErrTextBox.TabIndex = 34; // // asymTextBox // this.asymTextBox.BackColor = System.Drawing.SystemColors.ControlLight; this.asymTextBox.Location = new System.Drawing.Point(392, 182); this.asymTextBox.Name = "asymTextBox"; this.asymTextBox.ReadOnly = true; this.asymTextBox.Size = new System.Drawing.Size(100, 20); this.asymTextBox.TabIndex = 35; // // asymErrTextBox // this.asymErrTextBox.BackColor = System.Drawing.SystemColors.ControlLight; this.asymErrTextBox.Location = new System.Drawing.Point(516, 182); this.asymErrTextBox.Name = "asymErrTextBox"; this.asymErrTextBox.ReadOnly = true; this.asymErrTextBox.Size = new System.Drawing.Size(100, 20); this.asymErrTextBox.TabIndex = 36; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(399, 75); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(85, 13); this.label2.TabIndex = 37; this.label2.Text = "Average on shot"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(400, 117); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(85, 13); this.label3.TabIndex = 38; this.label3.Text = "Average off shot"; // // pmtFitPlot // this.pmtFitPlot.LineColor = System.Drawing.Color.Silver; this.pmtFitPlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.pmtFitPlot.LineStyle = NationalInstruments.UI.LineStyle.DashDot; this.pmtFitPlot.LineWidth = 2F; this.pmtFitPlot.XAxis = this.xAxis3; this.pmtFitPlot.YAxis = this.pmtYAxis; // // xAxis3 // this.xAxis3.Mode = NationalInstruments.UI.AxisMode.Fixed; // // pmtOffAvgPlot // this.pmtOffAvgPlot.LineColor = System.Drawing.Color.PowderBlue; this.pmtOffAvgPlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.pmtOffAvgPlot.XAxis = this.xAxis3; this.pmtOffAvgPlot.YAxis = this.pmtYAxis; // // pmtOnAvgPlot // this.pmtOnAvgPlot.LineColor = System.Drawing.Color.Red; this.pmtOnAvgPlot.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.pmtOnAvgPlot.XAxis = this.xAxis3; this.pmtOnAvgPlot.YAxis = this.pmtYAxis; // // pmtOffPlot // this.pmtOffPlot.LineStyle = NationalInstruments.UI.LineStyle.None; this.pmtOffPlot.PointColor = System.Drawing.Color.Magenta; this.pmtOffPlot.PointStyle = NationalInstruments.UI.PointStyle.Cross; this.pmtOffPlot.XAxis = this.xAxis3; this.pmtOffPlot.YAxis = this.pmtYAxis; // // pmtOnPlot // this.pmtOnPlot.LineStyle = NationalInstruments.UI.LineStyle.None; this.pmtOnPlot.PointStyle = NationalInstruments.UI.PointStyle.Cross; this.pmtOnPlot.XAxis = this.xAxis3; this.pmtOnPlot.YAxis = this.pmtYAxis; // // pmtHighCursor // this.pmtHighCursor.Color = System.Drawing.Color.Lime; this.pmtHighCursor.HorizontalCrosshairMode = NationalInstruments.UI.CursorCrosshairMode.None; this.pmtHighCursor.LabelVisible = true; this.pmtHighCursor.Plot = this.pmtOnAvgPlot; this.pmtHighCursor.SnapMode = NationalInstruments.UI.CursorSnapMode.Floating; this.pmtHighCursor.AfterMove += new NationalInstruments.UI.AfterMoveXYCursorEventHandler(this.PMTCursorMoved); // // pmtLowCursor // this.pmtLowCursor.HorizontalCrosshairMode = NationalInstruments.UI.CursorCrosshairMode.None; this.pmtLowCursor.LabelVisible = true; this.pmtLowCursor.Plot = this.pmtOnAvgPlot; this.pmtLowCursor.SnapMode = NationalInstruments.UI.CursorSnapMode.Floating; this.pmtLowCursor.AfterMove += new NationalInstruments.UI.AfterMoveXYCursorEventHandler(this.PMTCursorMoved); // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(389, 166); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(112, 13); this.label4.TabIndex = 39; this.label4.Text = "Average on-off/on+off"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(538, 75); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(53, 13); this.label5.TabIndex = 40; this.label5.Text = "Shot error"; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(538, 117); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(53, 13); this.label6.TabIndex = 41; this.label6.Text = "Shot error"; // // label7 // this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(538, 166); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(53, 13); this.label7.TabIndex = 42; this.label7.Text = "Shot error"; // // resetButton // this.resetButton.Location = new System.Drawing.Point(392, 220); this.resetButton.Name = "resetButton"; this.resetButton.Size = new System.Drawing.Size(224, 23); this.resetButton.TabIndex = 43; this.resetButton.Text = "Reset!"; this.resetButton.UseVisualStyleBackColor = true; this.resetButton.Click += new System.EventHandler(this.resetButton_Click); // // pmtGraph // this.pmtGraph.Cursors.AddRange(new NationalInstruments.UI.XYCursor[] { this.xyCursor1, this.xyCursor2}); this.pmtGraph.InteractionMode = ((NationalInstruments.UI.GraphInteractionModes)((((((((NationalInstruments.UI.GraphInteractionModes.ZoomX | NationalInstruments.UI.GraphInteractionModes.ZoomY) | NationalInstruments.UI.GraphInteractionModes.ZoomAroundPoint) | NationalInstruments.UI.GraphInteractionModes.PanX) | NationalInstruments.UI.GraphInteractionModes.PanY) | NationalInstruments.UI.GraphInteractionModes.DragCursor) | NationalInstruments.UI.GraphInteractionModes.DragAnnotationCaption) | NationalInstruments.UI.GraphInteractionModes.EditRange))); this.pmtGraph.Location = new System.Drawing.Point(373, 304); this.pmtGraph.Name = "pmtGraph"; this.pmtGraph.Plots.AddRange(new NationalInstruments.UI.ScatterPlot[] { this.scatterPlot2, this.scatterPlot3, this.scatterPlot1, this.scatterPlot4, this.scatterPlot5}); this.pmtGraph.Size = new System.Drawing.Size(584, 280); this.pmtGraph.TabIndex = 44; this.pmtGraph.XAxes.AddRange(new NationalInstruments.UI.XAxis[] { this.xAxis1}); this.pmtGraph.YAxes.AddRange(new NationalInstruments.UI.YAxis[] { this.yAxis1}); // // xyCursor1 // this.xyCursor1.HorizontalCrosshairMode = NationalInstruments.UI.CursorCrosshairMode.None; this.xyCursor1.LabelVisible = true; this.xyCursor1.Plot = this.scatterPlot1; this.xyCursor1.SnapMode = NationalInstruments.UI.CursorSnapMode.Floating; // // scatterPlot1 // this.scatterPlot1.LineColor = System.Drawing.Color.Red; this.scatterPlot1.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.scatterPlot1.XAxis = this.xAxis1; this.scatterPlot1.YAxis = this.yAxis1; // // xAxis1 // this.xAxis1.Mode = NationalInstruments.UI.AxisMode.Fixed; // // xyCursor2 // this.xyCursor2.Color = System.Drawing.Color.Lime; this.xyCursor2.HorizontalCrosshairMode = NationalInstruments.UI.CursorCrosshairMode.None; this.xyCursor2.LabelVisible = true; this.xyCursor2.Plot = this.scatterPlot1; this.xyCursor2.SnapMode = NationalInstruments.UI.CursorSnapMode.Floating; // // scatterPlot2 // this.scatterPlot2.LineStyle = NationalInstruments.UI.LineStyle.None; this.scatterPlot2.PointStyle = NationalInstruments.UI.PointStyle.Cross; this.scatterPlot2.XAxis = this.xAxis1; this.scatterPlot2.YAxis = this.yAxis1; // // scatterPlot3 // this.scatterPlot3.LineStyle = NationalInstruments.UI.LineStyle.None; this.scatterPlot3.PointColor = System.Drawing.Color.Magenta; this.scatterPlot3.PointStyle = NationalInstruments.UI.PointStyle.Cross; this.scatterPlot3.XAxis = this.xAxis1; this.scatterPlot3.YAxis = this.yAxis1; // // scatterPlot4 // this.scatterPlot4.LineColor = System.Drawing.Color.PowderBlue; this.scatterPlot4.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.scatterPlot4.XAxis = this.xAxis1; this.scatterPlot4.YAxis = this.yAxis1; // // scatterPlot5 // this.scatterPlot5.LineColor = System.Drawing.Color.Silver; this.scatterPlot5.LineColorPrecedence = NationalInstruments.UI.ColorPrecedence.UserDefinedColor; this.scatterPlot5.LineStyle = NationalInstruments.UI.LineStyle.DashDot; this.scatterPlot5.LineWidth = 2F; this.scatterPlot5.XAxis = this.xAxis1; this.scatterPlot5.YAxis = this.yAxis1; // // TweakViewerWindow // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(970, 659); this.Controls.Add(this.pmtGraph); this.Controls.Add(this.resetButton); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.asymErrTextBox); this.Controls.Add(this.asymTextBox); this.Controls.Add(this.OffErrTextBox); this.Controls.Add(this.OffAvTextBox); this.Controls.Add(this.OnErrTextBox); this.Controls.Add(this.OnAvTextBox); this.Controls.Add(this.splitContainer1); this.Controls.Add(this.tofFitDataSelectCombo); this.Controls.Add(this.updateTOFFitButton); this.Controls.Add(this.tofFitResultsLabel); this.Controls.Add(this.tofFitFunctionCombo); this.Controls.Add(this.label1); this.Controls.Add(this.tofFitModeCombo); this.Controls.Add(this.tofGraph); this.Controls.Add(this.differenceGraph); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "TweakViewerWindow"; this.Text = "Tweak View"; this.Closing += new System.ComponentModel.CancelEventHandler(this.WindowClosing); ((System.ComponentModel.ISupportInitialize)(this.differenceGraph)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tofGraph)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tofLowCursor)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tofHighCursor)).EndInit(); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); this.splitContainer2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pmtHighCursor)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pmtLowCursor)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pmtGraph)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xyCursor1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xyCursor2)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }