Example: Sweep Chart

Measurement Studio User Interface

Example: Sweep Chart

Demonstrates a special kind of data charting available on the CWGraph.

Description

This example demonstrates the sweep graph function of the CWGraph. A sweep chart replaces a previous set of data from the graph with a cursor to show where the new data begins. This sweeping shows a set number of points at any one time instead of all of the points on the same graph. Plots and charts are rather similar, though they are different. The difference between a plot and a chart is that a plot refers to taking a large number of points and updating one or more plots on the graph with new data. The old plot is replaced with a new plot. Charting data refers to appending new points to the end of an existing plot over time.

To begin this example, choose either Sine or Random data with the slide. Press the Sweep Chart button to see the chart plot data. Each time you press the Sweep Chart button, 250 data points are charted on the graph.

Example Location

Samples\UI\Graph\Sweep Chart