LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot XYY graph in labview

Dear All,

          Please help me to plot XYY graph in labview. I am doing a real time measurement and I would like to have a graph with two Y values (one in left and another in right).

0 Kudos
Message 1 of 4
(2,931 Views)

You can do this by right click on the Y-axis, select "Duplicate Scale", then right click on the added scale and select "Swap Sides", then right click on each scale and select the plot you want for this scale.

 

Hope this helps

Message 2 of 4
(2,927 Views)

Pl find the attached code that I tried. I am looking for a real time measuremnt solution. I have x axis and two y axis components. I want that two y-axis should get update each time when each data arives.

 

The attachement XYY_V1 works when I keep the waveform graph outside loop. But I want the graph to get update each time when the loop runs. When I keep the xy graph inside the loop I am not able to do that.

Download All
0 Kudos
Message 3 of 4
(2,908 Views)

Actually the XYY_V1 code you attached is not using an XY-graph, it is using a waveform graph with two plots (points of x and points of y).

 

In the attached code, I have put three for loops, one is your loop, the second is an xy graph with single plot, and the third one, is an xy-graph with two plots in order to show the difference between the three options.

 

Please note that this code is just to show the difference between the three ways of plotting data, so you have to be careful when using array with shift register, because if the size of the array (that goes through the shift register) become large it will affect the performance of the code .

 

Hope this helps

0 Kudos
Message 4 of 4
(2,895 Views)