LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple y axis xy graph

Hi all,

 

I am trying to plot two different data sets both with respect to time on the same XY graph using two y scales.  See attachments for reference.  The graph looks fine when I plot only one data set.  What I want is to have the second data plotted on the same graph that would look similar to the profile of the single plot only using it's own y scale.  You can see from the dual y-axis graph, that this is not what I want.  Any suggestions?

0 Kudos
Message 1 of 8
(27,541 Views)

Have you had a look at the example XY Graph.vi in Example Finder. Let us know if you still have questons after that.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 8
(27,522 Views)

I have looked at that at came up empty.  As of right now the data is being brought into the xy graph as a 1D array of cluster of two elements. The 1st cluster in the array is x-time and y-force, the next cluster is x-time and y-speed, these continue to alternate through total time x. Both of the data sets are being plotted on the same y scale.  What I want is all the force vs. time clusters plotted on one y scale and the speed vs. force clusters plotted on a different y scale.

0 Kudos
Message 3 of 8
(27,519 Views)

I'm not sure if it is the same on newer versions, but in 8.6 you do that in the properties of the X-Y graph. Choose the plot you want on its own scale and choose the scale you want to plot it on.

Message 4 of 8
(27,500 Views)

You can also access these properties through VI server calls to the XY graph.

0 Kudos
Message 5 of 8
(27,468 Views)

I also need to have two Y axis on one graph. I am using LV-2011, 32 bit. The XY Graph.vi does not have a dual axis example and my XY Graph properties display does not have an Amplitude 2 (Y-Axis) choice on the Plots tab. Can anyone give more details on how to get dual axis's on one chart? Thanks.

0 Kudos
Message 6 of 8
(27,367 Views)

Right click on the existing Y scale and select Duplicate Scale.  You will then have another scale which will show up in the properties dialog.  Unfortunately, this is the only way I know to create a new scale.

Message 7 of 8
(27,355 Views)

This thread is quite old but for future references I am posting what I think is getting unnoticed here. If you want to have multiple scales on a XY graph, you need to map the plots to the scales. To do this,after you make a duplicate scale, right click the plot in the plot legend and select from the X Scale or Y Scale shortcut menus. If the plot legend is not visible, right-click the graph or chart and select Visible Items»Plot Legend from the shortcut menu.This explains why some members were getting similar profiles on different scales when they duplicated the scales.

Message 8 of 8
(24,607 Views)