Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
VIs with graphs usually collect the data in an array and then plot the data to the graph. Figure 1 shows the elements of a graph.
![]() |
The graphs located on the Controls>>Graph
Indicators palette include the waveform
graph and XY graph. The waveform
graph plots only single-valued functions, as in
XY graphs
display any set of points, evenly sampled or not.
Resize the plot legend to display multiple plots. Use multiple
plots to save space on the front panel and to make comparisons
between plots. XY and waveform graphs
automatically adapt to multiple plots.
The waveform graph accepts a single array of
values and interprets the data as points on the graph and
increments the Waveform Graph VI in the
NI Example Finder for examples of the data types
that single-plot waveform graphs accept.
A multiplot waveform graph accepts a 2D array of
values, where each row of the array is a single plot. The
graph interprets the data as points on the graph and
increments the Transpose Array from the
shortcut menu to handle each column of the array as a plot.
Refer to the (Y) Multi Plot 1 graph in the
Waveform Graph VI in the NI Example
Finder for an example of a graph that accepts this data
type.
A multiplot waveform graph also accepts a cluster
of an (Xo, dX, Y) Multi Plot 3
graph in the Waveform Graph VI in the
NI Example Finder for an example of a graph that
accepts this data type.
A multiplot waveform graph accepts a cluster of
an initial Bundle function to bundle the arrays into
clusters, and you use the Build Array function to
build the resulting clusters into an array. You also can use
the Build Cluster Array, which creates arrays of
clusters that contain inputs you specify. Refer to the
(Xo, dX, Y) Multi Plot 2 graph in the
Waveform Graph VI in the NI Example
Finder for an example of a graph that accepts this data
type.
The single-plot XY graph accepts a cluster that
contains an XY
graph also accepts an array of points, where a point is
a cluster that contains an XY Graph VI in the NI Example
Finder for an example of single-plot XY
graph data types.
The multiplot XY graph accepts an array of plots,
where a plot is a cluster that contains an x array and a y
array. The multiplot XY graph also accepts an
array of clusters of plots, where a plot is an array of
points. A point is a cluster that contains an x value and a y
value. Refer to the XY Graph VI in the NI
Example Finder for an example of multiplot XY
graph data types.
"A full introductory course on programming with LabVIEW."