Skip to content Skip to navigation

Connexions

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

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of 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.

      What are tags? tag icon

      Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

    • External bookmarks
  • E-mail the author
  • Rate this module (How does the rating system work?)

    Rating system

    Ratings

    Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

    How to rate a module

    Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

    (0 ratings)

Lenses

What is a lens?

Definition of 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.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

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.
  • National Instruments display tagshide tags

    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.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

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

Waveform and XY Graphs

Module by: National Instruments

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.

Figure 1
Figure 1 (intensitygraphchart.png)

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?

Send feedback