LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

chart y axes overlap

I am using an x-y chart and I allow the user to select up to 5 visible
y-axes which I make visible or invisible as appropriate using the
property node. Sometimes, when the number of visible y-axes is
changed, two or more axes are redrawn on top of each other or with
un-even spacing. This problem is not always repeatable but occurs
regularly and I have recently discovered it in a LV built exe also
(when the exe is restarted it's OK). I am using LV7, but I have
noticed this problem in 6.1 also.

Having done some tests I realise that this effect is only apparent if
the y-axis scale values include decimal places (see attached test vi).

Has anyone got a fix for this?
0 Kudos
Message 1 of 9
(4,225 Views)
I don't know whether this will work, but it worth the try. Put this
line into your labview.ini :
EnableAutoScales=False

If this works, then you need to put it in your application ini file.

Joe
Message 2 of 9
(4,225 Views)
Joe,
Thanks for the tip but it doesn't work. The behaviour is different but
still not correct.
Jim/.
0 Kudos
Message 3 of 9
(4,225 Views)
I have created a work-around to my problem by setting all y-axes precision to zero, then setting each y-axis visible/invisible, then resetting the original precision of each y-axis.

(see attached)
0 Kudos
Message 4 of 9
(4,225 Views)
Hello Jim,
Thanks for your inquiry regarding y axes spacing and overlapping. After running the VI that you supplied, I could see the problem that you were having. There seemed to be large gaps between some of the axes and no spacing between others. One possible solution is to reset the scale layout after resizing the graph.

To reset the scale layout after resizing the graph
1. Right click the XY graph on the front panel
2. Select Advanced>>Reset Scale Layout

This should take care of the problem. Let me know if this doesn�t work for you.

Shea Clymer
Applications Engineering
0 Kudos
Message 5 of 9
(4,225 Views)
Shea,
Thanks for your response. Your solution works fine in the example...however!...I didn't mention that the user is able to resize the chart during run-time. Is it possible to 'reset scale layout' programmatically?
jim/.
0 Kudos
Message 6 of 9
(4,225 Views)
Jim,

Resizing of the chart during run-time seems to be the problem. However, in the example that you submitted I was not able to do this while the VI was running. One would think the solution would be to create a property node for the XY Graph with the reset scale layout property enabled. However, no such property exists at this time. You could use a combination of properties to get the graph to reset the scales programmatically. It looks like you have done this in a way already. This issue has been reported but this seems to be the only workaround at the present time.

Let me know if I can further assist you!

Shea Clymer
Applications Engineering
0 Kudos
Message 7 of 9
(4,225 Views)
I am having problems similar to the one reported here and even by using the method in the vi provided to eliminate the scaling problem, I find it to still exist on my machine. For our program to run effectively we need to be able to add and remove scales at run time. Do you know if Labview 7.1 waveform graphs have a Reset Scale Layout method or if National Instruments plans to provide one soon.

Thanks
Jonathon
0 Kudos
Message 8 of 9
(4,225 Views)

I ran into this problem recently. I was getting overlapping Y scales in my executable but not while running in source code. It turns out I had this item in my application INI file:

EnableAutoScales=False

 

Once I set it to True, the plot resized and scales were correctly spaced.

 

This was using LV2011 SP1

 

Thanks to the poster above who lead me down this path.

 

 

0 Kudos
Message 9 of 9
(3,476 Views)