Creating Strip Charts, Scope Charts, and Graphs with the Measurement Studio Windows Forms Scatter and Waveform Graph .NET Controls

Measurement Studio 2012 for Visual Studio 2010 Help

Edition Date: August 2012

Part Number: 372636F-01

»View Product Info
Download Help (Windows Only)

See Also


You can use the Measurement Studio scatter and waveform graph .NET controls to create a strip chart, scope chart, or graph by configuring the axes of the graph and using plot methods that append new data to the plot or display only the most recent data in the plot. Refer to the following sections for more information:

Scaling Axes

You can customize an axis of a scatter or waveform graph to use a fixed scale, to autoscale, or to chart.

Fixed Scale

To configure an XAxis or YAxis to display a scale that you specify, set Mode to Fixed. Set the Range to specify the minimum and maximum values that are displayed by the axis. Setting Mode to Fixed prevents the axis range from updating when a new set of data is plotted to the associated plots. Typically, you use the PlotY, PlotY, PlotXY, and PlotXY methods in conjunction with Mode set to Fixed.

Autoscale

To configure an XAxis or YAxis to display a scale that adjusts to fit all data in the associated plots, set the Mode to AutoScaleExact or AutoScaleLoose. Typically, you use the PlotY, PlotY, PlotXY, and PlotXY methods in conjunction with Mode set to AutoScaleExact or AutoScaleLoose.

Chart

To configure an XAxis or YAxis to display a scale that adjusts to fit the most recent data added to the associated plots, set the Mode to ScopeChart or StripChart. Typically, you use the PlotYAppend, PlotYAppend, PlotXYAppend, and PlotXYAppend methods in conjunction with Mode set to ScopeChart or StripChart.

Plotting and Charting

There are two fundamental modes for displaying data on a graph—plotting and charting.

When you plot data on a waveform or scatter graph, the WaveformPlot and ScatterPlot objects discard all previous data and displays only the new data that you specify. In a typical plotting application, you use PlotY, PlotY, PlotXY, or PlotXY to specify the data values for the plot. In a typical plotting application, you set Mode to Fixed, AutoScaleExact, or AutoScaleLoose.

To configure the waveform or scatter graph to plot vertically, set Mode to Fixed, AutoScaleExact, or AutoScaleLoose. To plot data that is displayed vertically, use the PlotX or PlotX method and the PlotXY or PlotXY method.

When you chart data on a waveform or scatter graph, the WaveformPlot and ScatterPlot objects append the new data that you specify to the data contained in the plot. When you append data that is outside the current minimum or maximum range of the XAxis or YAxis that is associated with the plot, the plot area of the graph scrolls to display new points. You typically use charting with slow processes in which only a few data points per second are added to the graph. In a typical charting application, you use PlotYAppend, PlotYAppend, PlotXYAppend, or PlotXYAppend to specify the data values for the plot. In a typical charting application, you set the Mode to ScopeChart or StripChart for the x-axis and to Fixed, AutoScaleExact, or AutoScaleLoose for the y-axis.

To configure a waveform or scatter graph to chart vertically, set the Mode to Fixed, AutoScaleExact, or AutoScaleLoose for the x-axis and to ScopeChart or StripChart for the y-axis. To chart data that is displayed vertically, use the PlotXAppend and PlotXAppend methods and the PlotXYAppend and PlotXYAppend methods.

See Also

WAS THIS ARTICLE HELPFUL?

Not Helpful