09-18-2012 03:36 PM
I have set up an XY graph in LabView 2012. The plot area is 1000x750. The x range min is -15. x range max is 15. y range min is -20. y range max is 20. The x and y range increments are 1. The x and y range minor increments are 0.2. The x range start is -14.
When I run the vi the graph comes up in the proper size. The minor grid lines for both the x and y ranges are there at every 0.2 units. The major grid lines are correct for the y scale at every 1 unit. The x scale has a major grid lines at -14 and 14, but in between the major grid lines are at -12, -10, -8, -6 ,-4, -2, 0, 2, 4, 6, 8, 10, and 12. This is incorrect. I expect to see them for every 1 unit as they are on the y scale.
I have change the x range start to -15 keeping all other properties the same. When I do this the major grid lines on the x scale are at -13, -11, -9, -7, -5, -3, -1, 1, 3, 5, 7, 9, 11, 13. Again every 2 units.
I have tried changing the width of the graph along with many of the other properties. Nothing has worked.
Why is this happening? Why does the y scale set up properly but the x scale does not?
I have attached a screenshot of the property node.
Any help is appreciated.
Regards-
john
09-19-2012 11:41 PM
Hi Johnoc,
This behavior is because there is not enough space on the axis to display that increment. In this case you need to increase the width.
Take a look at the next KB ->
http://digital.ni.com/public.nsf/allkb/200DF405B3CEB886862575C500735696
Regards,
Minor Coto
Applications Engineer
National Intruments
09-20-2012 09:30 AM
Thank you Minor!
I tried expanding the width of the graph. Even to the point that it was the same width as it was tall. The ticks did not change. They are still being displayed the same as they were. I have tried several widths and no change. This is a big problem as this graph is being used to replace an analog XY plotter so the ratio and the tick marks are very important as they are used by our machinists to calculate the amount of material to remove as they precision grind parts.
Regards-
John
09-21-2012 10:22 AM
Hi John
Can you submit your VI? Or at least a copy with the XY Graph and the property node.
Regards
Minor Coto
Applications Engineer
National Instruments
09-21-2012 10:38 AM
Two things to try:
johnoc wrote:I tried expanding the width of the graph. Even to the point that it was the same width as it was tall.
A vertical axis needs much less space for a tick than a horizontal axis, so that's expected. We really need to see a simplified version of your actual VI (delete everything except the graph and the property nodes).
09-25-2012 12:26 AM
Hi John,
Is there any update about the issue? Did you try the recommendations from Altenback?
I can see in the first screenshot that you are passing the reference to a strict property node and that it is inside of a for loop, maybe because you are trying to do the same process for many XY Graphs Indicators in a Sub-VI ( ??? ). If it is the scenario, could you try to use the Implicit Property Node instead of the Strict? Also, remember to disable the “Autosize Plot Legend” option for the XY Graph.
Please let me know the results. If you are able to submit the part of the requested code, that will be useful.
Regards,
Minor Coto
Applications Engineer
National Intruments