LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot 2 variables, say sq root(x) vs x?

Am a new user and am just learning labview.. i am trying to plot 2 variables, but found that in labview the variables are noramlly plotted vs time. i want to plot one variable agianst another instead of time. say square root(x) vs x. can anyone help me out....
0 Kudos
Message 1 of 7
(3,909 Views)
Use an xy-graph.
 
It accepts several data arrangments, e.g.
 
a cluster of an X-array and a Y-array
An array of xy clusters
...
 
Open the example finder and search for xy graph for details and examples.
 
Note that you only need to use an xy graph if the x values are not spaced equally. If the x-values are spaced equally it is sufficient to use a plain waveform graph and only send the Y-array. You then would adjust the x-values by setting x0 and dx for the scale.
0 Kudos
Message 2 of 7
(3,903 Views)
you can find something usefull here: graph xy thread

you can check the attached file for some advice, i find it in Find Examples >> Search >> Graph

i hope it helps you 😉


0 Kudos
Message 3 of 7
(3,901 Views)
thanks a lot for replying back. i had already checked that out , but my problem is tat, i am trying to plot the graph point by point , cos i need to monitor if my experiment is working fine. so i cant give in a cluster, but just a point (x,y) at a time. and need to see how the graph is getting modified as the experiment proceeds. so is thr some way out? 
0 Kudos
Message 4 of 7
(3,897 Views)
Easiest would be to use the xy-graph from the express palette. and feed it single numbers for x and y. right-click on the express VI "built xy graph" and uncheck "clear data on each call".
0 Kudos
Message 5 of 7
(3,890 Views)
well, i'm using this to do what you want

but i'm thinking to try what alten said 😛
0 Kudos
Message 6 of 7
(3,884 Views)
thanks a lot. its working fine.
0 Kudos
Message 7 of 7
(3,869 Views)