LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiples scales, swap sides problem (LV8.5)

Solved!
Go to solution

Great idea and I appreciate the help. The attached VI shows the graphs I need second axis for.

 

Sincerely,

 

Don

0 Kudos
Message 11 of 17
(2,145 Views)

Hi Don,

 

here you go!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 17
(2,137 Views)

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

0 Kudos
Message 13 of 17
(2,133 Views)

Hi Don,

 

done Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 14 of 17
(2,130 Views)
Solution
Accepted by topic author DonRoth

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,test2.png it will once again allow you to create duplicate scales and swap sides properly. 

Message 15 of 17
(2,107 Views)

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.)

Message 16 of 17
(1,460 Views)

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.Smiley Happy

0 Kudos
Message 17 of 17
(1,453 Views)