Connexions

You are here: Home » Content » Waveform and XY Graphs
Content Actions
Lenses

What is a lens?

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...
Affiliated with (?)
This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • This module is included in aLens by: National InstrumentsAs a part of collection:"LabVIEW Graphical Programming Course"

    Comments:

    "A full introductory course on programming with LabVIEW."

    Click the "National Instruments" link to see all content affiliated with them.

    National Instruments
Also in these lenses
  • This module is included inLens: Connexions Books Available for Print on Demand
    By: ConnexionsAs a part of collection:"LabVIEW Graphical Programming Course"

    Comments:

    "This book is available through the Connexions beta version of print-on-demand from online materials."

    Click the "Printable Books" link to see all content selected in this lens.

    Printable Books
Tags

(?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

Waveform and XY Graphs

Module by: National Instruments

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.
intensitygraphchart.png
Figure 1
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 y=fx y f x , with points evenly distributed along the x-axis, such as acquired time-varying waveforms. 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.

Single Plot Waveform Graphs

The waveform graph accepts a single array of values and interprets the data as points on the graph and increments the xx index by one starting at x=0 x 0 . The graph also accepts a cluster of an initial xx value, a Δx Δ x , and an array of yy data. Refer to the Waveform Graph VI in the NI Example Finder for examples of the data types that single-plot waveform graphs accept.

Multiplot Waveform Graphs

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 xx index by one, starting at x=0 x 0 . Wire a 2D array data type to the graph, right-click the graph, and select 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 xx value, a Δx Δ x value, and a 2D array of yy data. The graph interprets the yy data as points on the graph and increments the xx index by Δx Δ x , starting at x=0 x 0 . Refer to the (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 xx value, a Δx Δ x value, and an array that contains clusters. Each cluster contains a point array that contains the yy data. You use the 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.

Single Plot XY Graphs

The single-plot XY graph accepts a cluster that contains an xx array and a yy array. The XY graph also accepts an array of points, where a point is a cluster that contains an xx value and a yy value. Refer to the XY Graph VI in the NI Example Finder for an example of single-plot XY graph data types.

Multiplot XY Graphs

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.

Comments, questions, feedback, criticisms?

Discussion forum

Send feedback