LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting XY graph

I am trying to plot an XY graph where I provide a set of X and the Y values. For practice purpose I've been using the random number generators with for loops, as seen in the attached VI. I want to be able to plot multiple plots depending the number of the outer FOR Loop. I can graph the first set of x and y values but I can't seem to grasp how I need access the rest of the set of x and y values. Help...

Newbie
0 Kudos
Message 1 of 4
(2,967 Views)
Your problem is related both to the way you are managing your data, and to the way you are using the XY graph.
1/ your data are organized as different rows, but you are reading only the two top rows;
2/ an XY graph need an array of XY data clusters to plot several independant graphs.

See the attached modified vi...

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(2,958 Views)
CC, great job of modifying the code for Newbie.

If you look in the examples you will find an example called XY Graph.vi (attached below). That example also shows how to create multiple plots on an XY Graph.
0 Kudos
Message 3 of 4
(2,934 Views)
Thank you, Sir. I didn't realize I needed to implement a cluster. Thanks!
0 Kudos
Message 4 of 4
(2,911 Views)