Example: Graph Styles
Demonstrates the Plot and Chart methods on the Measurement Studio CWGraph ActiveX control.
Description
The Graph is the most complex of the user interface objects. You can use it in two basic modes: Plot or Chart. You can select the mode by using different methods in your program to pass data to the graph.
This example uses the PlotY and ChartY methods, which are the two most common methods for passing data to the graph. However, there are two more Plot methods (PlotXY and PlotXvsY) and two more Chart methods (ChartXY and ChartXvsY) that affect how data is displayed on the graph.
The button control has several different display styles but maintains a single set of property sheets and properties, methods, and events. You can use the Button control as an input or output. When using it as an input, create a push button or a switch to initiate an action or switch between actions. For an output, create an LED to indicate a Boolean condition.
Example Location
Samples\UI\Graph\Graph Styles