LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I plot two plots with two different Y axis,one on the left and one on the right ?(double axis)

I have read many similar questions  on the forum but I see no best ways . I use DAQ card .LabVIEW 8.0, to measure two signals at the same time  ( ex: intensity mA (autorange),temperature:0-400oC) and I want to plot them on the same graph. I used stack plots without problems,but it doesnot satisfy me . Help me.
0 Kudos
Message 1 of 7
(3,441 Views)
You don't mention the answers you saw or what you tried. All you have to do is right click on the y scale and select Duplicate Scale. You can then select the duplicate and select Swap Sides. Then you click on the plot you want to associate to the new scale and select Y Scale. You'll see the names of both y scales. Pick the one you want. You can use the on-line help and under Scales, is the multiple topic.
0 Kudos
Message 2 of 7
(3,439 Views)
Ok, I did all as you told me. I got the graph that I want to create. I got two curve on the same graph but the scale is not right. Only on one Y axis the scale is correct, the other is not . ( I want to use one Y axis : 0 to 400, the other :0-10 (or autoscaleY)). The attached screen shot shows that. It is no problem when I use stack plot. Thanks.
0 Kudos
Message 3 of 7
(3,406 Views)
Please attach a simplified version of the actual VI (containing the graph and some data). we cannot really troubleshoot a plain image. 😉
0 Kudos
Message 4 of 7
(3,397 Views)
It looks like you did not associate the plot to the new scale. Did you click on the plot in the Plot Legend? When you do, you get a screen like shown below.
0 Kudos
Message 5 of 7
(3,396 Views)
Yes, you are right. I did not associate the plot to new scale. It is great. Thank you very much for understanding me.  
0 Kudos
Message 6 of 7
(3,387 Views)
I tried and I could create my graph now. Thanks again.
0 Kudos
Message 7 of 7
(3,386 Views)