11-27-2009 12:44 PM
Great idea and I appreciate the help. The attached VI shows the graphs I need second axis for.
Sincerely,
Don
11-27-2009 01:05 PM
11-27-2009 01:21 PM
That's great! Can you make me a version with the second axis swapped to the opposite side? (Won't work for me.) Then I will be all set!
Thanks so much in advance. Now I can finish what was supposed to be a 30 minute mod.
Sincerely,
Don
11-27-2009 01:36 PM
11-28-2009 10:47 AM
Hi Gerd & Everyone else:
I found the problem - it was a hunch that I had that for some reason came into my head.
In my LabVIEW.ini file, I have the setting: "EnableAutoScales=False" which I have placed there to keep the plots from resizing themselves. So of course if you add a second scale, with this setting, the second scale gets placed right on top of the first one rather than offset from it with the plot now resized.
So if you temporarily change this setting to "EnableAutoScales=True" (or probably even just remove this line from the .ini file), and restart LabVIEW, it will once again allow you to create duplicate scales and swap sides properly.
03-02-2017 10:32 PM
And I've just hit this problem in LV2016. (And before people complain about me resurrecting a long dead thread, I want the solution where it can be found in a Google search, and this is what came up, so in my view it's the right place to put it. You're free to differ.)
The solution is marginally easier now, although by making it more accessible, NI have also created the situation that users can inadvertently cause this illogical behaviour to occur.
No need to mess around with ini files and restarting any more: if you experience the symptoms described here, you probably have the option Advanced -> Auto Adjust Scales turned off to prevent LabVIEW resizing your (inner) graph pane. Just turn it off, swap the sides of the scale (which will mess up your graph size, exactly what you didn't want to happen when you chose that option in the first place), then turn it on again.
Quite why it works this way, I don't know. I wouldn't call this expected behaviour. (At least I don't expect it.) I had correctly resized my (inner) graph pane to allow the axis to be positioned on the right, but LabVIEW just wouldn't move it. Very confusing.
(I also had to do some jiggery-pokery since LabVIEW anyway screwed up the graph layout when resizing, relocating my unswapped axis on top of the (inner) graph pane. I fixed it by swapping the side of that one too, then swapping it back. That put it back where it should be, outside the (inner) graph pane, and then I could get back to resizing the graph back to the correct size.)
03-03-2017 07:49 AM
I think it was perfectly appropriate to add on to this old thread. The thread was directly relevant to your problem, it helped you, and you provided useful additional information. Thanks for contributing it.