Graph control, Figure 3-3. activex graph control, Graph control -11 – National Instruments Measurement Studio User Manual

Page 36

Advertising
background image

Chapter 3

Measurement Studio Visual C++ Class Libraries

© National Instruments Corporation

3-11

Measurement Studio User Manual

Graph Control

Use the Measurement Studio ActiveX graph control, as shown in
Figure 3-3, to plot and chart two-dimensional data. The

CNiGraph

class

provides the Visual C++ interface to the ActiveX graph control.

Figure 3-3. ActiveX Graph Control

With the graph control and the classes that interface with the control, you
can perform the following operations:

Plot and chart data.

Configure a graph to contain multiple plots to show separate but
related data on the same graph.

Configure a graph to include multiple Y axes so that plot data fits the
graph plot area.

Use cursors and annotations to identify key points in plots and the
plot area.

Configure cursor snap modes to be fixed, floating, nearest point,
and to plot.

Pan and zoom interactively.

Use the

CNiAxis

class to interface to a single axis of a graph control.

This feature allows you to modify the appearance and behavior of
the axis.

Automatically label axes with log or inverted numeric scales.

Configure the axis modes for manual scaling or autoscaling.

Configure the graph for fixed, strip, or scope charting.

Customize the graph by using ticks, labels, and value pairs.

Advertising