mwebster Posted December 14, 2011 Report Share Posted December 14, 2011 Greetings, I have this intermittent problem with multiple axes on a waveform graph control. I have a graph where I'm displaying multiple, optional graphs with different units (voltage, current, torque, angular position). I coded up a boolean selector array to allow the user to select which graphs they wanted to display (some 3 whole months before the feature was introduced in 2011 (this is 2010 SP1 btw)). I process this array when it changes and make unselected graphs transparent. At the same time, I analyze which units are being displayed and if, for example, there are no torque signals, I turn off the torque axis (via YScale.Visible) to make more room on the graph. My problem is that when this is done dynamically, sometimes two axes will wind up being drawn overlapping each other. The units for one overwriting units of the other and/or one of the scales being pushed much further off to the side than necessary eating up a lot of graph space. The only way I've found to fix this (if in the dev environment) is to stop the program, right click the scale and tell it to "swap sides", then tell it to swap sides again. (I might should mention I have two scales on the left and two on the right). This will fix it every time. However, I've been unable to locate a property that replicates this behavior or even just gives me a 'redraw' type command to recompute the axis display positions. Oh, also the Yscale.Visible and coloring the unselected graphs transparent is done with DeferPanelUpdates turned on. Can anyone think of a way to fix this short of manually playing around with Bounds & Position settings? Best Regards, Mike Quote Link to comment
jbjorlie Posted February 14, 2012 Report Share Posted February 14, 2012 (edited) I have no answers but run into this all the time. Help us, please! I have found that making sure the background of the labels and scale numbers are not transparent seems to help. It also seems to help if I initialize the scales with the same number of digits in width. Another one is to make sure the plot area is small enough to allow all the scales to appear without re-sizing. None of those work reliably or very well...I hope somebody has a solution. Did you post this on the dark side? Jeremy Edited February 14, 2012 by jbjorlie Quote Link to comment
mwebster Posted February 15, 2012 Author Report Share Posted February 15, 2012 No, I didn't. It was more of an annoyance in that program than anything else and only happened intermittently. In fact, I'm not sure I ever saw it happen in the compiled version, but I didn't play around with it that much trying to break it either. Quote Link to comment
viSci Posted February 15, 2012 Report Share Posted February 15, 2012 Maybe related to this... http://forums.ni.com/t5/LabVIEW/Graph-Y-axis-creep/m-p/1691228#M600127 Quote Link to comment
jbjorlie Posted February 16, 2012 Report Share Posted February 16, 2012 I'm sure the root of both problems is the same, thanks! Have you received any update on the CAR? How can you check the status of a CAR? Quote Link to comment
viSci Posted February 16, 2012 Report Share Posted February 16, 2012 Did you try to enable the Auto Adjust Scales option in the right click advanced menu? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.