LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Y scales of graph appear at wrong/different places

I have a single graph that displays multiple plots. The user dynamically chooses which 2 of the 8 plots are displayed at a time. The Y axis scale for each plot is different. When I change the Y axis scale for the different plots and then run the program the Y scale gets shifted away from the graph. I've tried to change the Y scale graphically and programtically but either way has not worked. HELP! I am attaching the VIs and sub VIs. (The graph property nodes and all things relating to the graph are in the right WHILE loop)
0 Kudos
Message 1 of 3
(2,681 Views)
Hello rvleadmal,

Thank you for your question regarding displaying multiple graphs on a plot. You mentioned that the scales were getting shifted away from the graphs. I took a look at the code that you sent me and made a few changes in the second loop. I also reduced the size of the viewing area in the graph indicator to allow room for the y-scales on each side. I set the first four values in the left enum control to be visable on the left side of the graph and the last four values in the right enum control to be visible on the right side of the graph. This is just for demonstration purposes. You could create separate enums for scales on each side of the graph if you would like.

Other resources can be found on the ni.com website by clicking the support ta
b at the top of the home page. Then search from Technical Resources at the top of the page for your topic. I hope this helps! Let me know if you need any other support with this issue.

Shea C.
Applications Engineering
0 Kudos
Message 2 of 3
(2,681 Views)
Hey Shea,
Thanks! but...
The purpose for having a left and a right control for all the plots is to be able to display any 2 plots (with their Y scales) at a time (so that they can be compared). Also the Y scales should be adjacent to the plot area. If you run your edited version you will see that for the first plot the Y scale is adjacent but for all subsequent plots the Y scale moves away from the plot area. It moves away from the plot area for no apparent reason! i really need to solve this problem..please help!
thanks once again

Attached is a file that is very nearly what I want (I.e. all the Y scales are adjacent to the plot area and thus easy to read). However when I change the multiplier for any of the Y scales they move away
from the plot area. I hope I am making sense!


rvleadmal
programmer in distress
Download All
0 Kudos
Message 3 of 3
(2,681 Views)