Graphing XY Data
- Updated2026-02-27
- 2 minute(s) read
You can programmatically graph waveform data on an XY graph.
This procedure describes how to build a simple VI that continuously generates a sine wave and graph that wave on an XY graph. You can apply these same principles to graph real data with LabVIEW.
To display an array of points on a single-plot XY graph, complete the following steps.
- Add an XY graph to the front panel.
- Build a block diagram with the following objects:
- Wire the x/y output of the Divide function to the x input of the Sine function.
- Wire the sin(x) output of the Sine function to the first (top) input terminal of the Bundle function.
- Wire the x*y output of the Multiply function to the second (bottom) input terminal of the Bundle function.
- Wire the iteration terminal of the For Loop to the x input of the Divide function and to the x input of the Multiply function.
-
Right-click the y input terminal of the Divide
function and select Create»Constant from the shortcut menu.
A numeric constant appears.
- Enter 10 in the constant and press the Enter key.
- Wire the constant to the y input terminal of the Multiply function.
-
Wire the output terminal of the Bundle function to the XY graph
terminal.
An auto-indexing tunnel appears where the wire intersects the loop border.
-
Right-click the count terminal of the For Loop and select
Create Constant from the shortcut menu.
A numeric constant appears.
- Enter 100 in the constant and press the Enter key.
- Run the VI.