You can programmatically graph waveform data on a waveform graph.

This procedure describes how to build a simple VI that continuously generates a sine wave and graph that wave on a waveform graph. You can apply these same principles to graph real waveform data with LabVIEW.

To display waveform data on a single-plot waveform graph, complete the following steps.

  1. Add a waveform graph to the front panel.
  2. Build a block diagram with the following objects:
    • Divide function
    • Sine function
    • For Loop: Drag the loop around all objects on the block diagram except for the waveform graph terminal
  3. Wire the x/y output of the Divide function to the x input of the Sine function.
  4. Wire the sin(x) output of the Sine function to the waveform graph terminal.
    An auto-indexing tunnel appears where the wire intersects the loop border.
  5. Wire the iteration terminal (i) of the For Loop to the x input of the Divide function.
  6. Right-click the y input terminal of the Divide function and select Create » Constant from the shortcut menu.
    A numeric constant appears.
  7. Enter 10 in the constant and press the Enter key.
  8. Right-click the count terminal (N) of the For Loop and select Create Constant from the shortcut menu.
    A numeric constant appears.
  9. Enter 100 in the constant and press the Enter key.
  10. Run the VI.
For an example of graphing waveform data, refer to the Waveform Graph Data Types VI in the labview\examples\Controls and Indicators\Graphs and Charts\Waveform Graphs and Charts directory.