LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mixed Signal Graph, Y-Scales positioning

Hi,

 

I’m trying to insert Y-Scales into a plot, so that the plot area will always be maximized.  Hide and unhide of Y-Scales works fine, however the plot area is not maximized.  I have tried to this by changing the value of the YScale.Left property to equal PlotBounds.Left property and then offset the PlotBounds.Left by adding YScale.Width property to it.  However every time I end up writing to PlotBounds property, the code behind the scene ends up completely rewriting values previously stored in YScale.Left.  Is there any other way around this?

 

martin

0 Kudos
Message 1 of 6
(3,625 Views)
Hello,
 
I'd like to help you out here.  I've opened your VI and run it.  From what you describe, it sounds like you don't want the plot area to resize as it does to "make room" for your additional Y-Scales.
 
Is that correct - you'd like the Y-scales to appear "on top" of the graph as opposed to floating to the left? 
 
If so, consider that it may be hard to read the scales in this case.
 
In any event, please be more specific and I'll try to help you achieve it.  Don't worry about discussing specific properties at this time, I'd just like to know what your "desired behavior" is, and we'll see if we can be creative about achieving it!  You can even "before and after" screenshot if you'd like, and/or create a little mockup in ms paint showing what you want to see.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 6
(3,601 Views)

I would like to have the plot area resize to make room for additional Y-Scales.  The position of the Y-Scales should be on the left floating.  I’m attaching screenshots of the desired behavior.  Let me know if you require additional info.

 

Regards,

 

martin

0 Kudos
Message 3 of 6
(3,595 Views)
Hello,
 
I'm sorry, I think I don't understand the problem you are having.  In your example I see the plot area resize seemingly as you desire.  I am testing this in LabVIEW 8.2 - what version are you using?
 
Perhaps this is something which has been fixed in 8.2, and you are simply seeing different behavior.
 
If you are indeed using 8.2, please describe the problem again.  I see that Y-scales float to the left and the plot area resizes accordingly - that's your desired behavior correct?
 
Looking forward to your reply!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 4 of 6
(3,569 Views)

Hi,

 

Currently I am using LabVIEW 8.2 and upon running the example, plot area does not resize seemingly.  The Y Scales float to the left and disappear behind the plot legend.  Is it possible that I might be missing something in my LabVIEW.ini file?

 

Regards,

 

martin

0 Kudos
Message 5 of 6
(3,565 Views)
Hello,
 
I don't think you're missing something in your LabVIEW.ini file.  I think we're still having a miscommunication here.  You have two mixed signal graphs.  The one you have labeled "Manual" misbehaves, while the one labeled "auto" seems to behave as you desire, showing all 4 y-scales floating to the left of your plot area.  What is different about those graphs, other that
 
Anyway, I played with this, and I do see the problem with one of your graphs, and with a new mixed signal graph I created.  What I have found is that if I right click on a scale and select "duplicate scale" that they stay and are displayed correctly.  If I use the scale legend to create them, they do not display correctly.
 
Is this your experience as well?  It seems as though the workaround is to use "duplicate scale" to create new scales (instead of the scale legend), and then change the scale properties if necessary.
 
I hope this helps!
 
Best Regards,
 
JLS
 
PS - In all honesty, I'd still like a very precise description of what you did to create these graphs.  I have edited code in your posted VI so that the same thing is done to both graphs, but I still see the difference.  Can you note any differences in the way you created the graphs?
Best,
JLS
Sixclear
0 Kudos
Message 6 of 6
(3,544 Views)