LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scale Range Change Event does not distinguish x- and y-axis when zooming

Solved!
Go to solution

When I use the 'Scale Range Change' event to determine the NewRange of the axis of my graph, the values retrieved do not distinguish between the different axes of the graph.  For instance, if I zoom into a certain region, I am changing both the x- and y-range, but only one of these is retrieved.  In the graph palette, if I force the 'zoom' option to be only vertical or only horizontal, then the correct Range is retrieved.  But in the general zoom option, it seems to only select the y-values.  However, if I zoom out over the entire graph, it selects the x-values.  How do I force the value to be of a specific kind?

 

 

0 Kudos
Message 1 of 4
(1,237 Views)

As a first step to help you solve the problem, attach a simplified VI that demonstrates the issue. Words are often not sufficient to describe a LabVIEW problem. Too many ambiguities!

 

If you have a very recent LabVIEW version, do a "save for previous" down to at least 2020 to get more chances)

0 Kudos
Message 2 of 4
(1,221 Views)
Solution
Accepted by topic author speclabAI

If both scales change during the zooming, you get two successive events, one for x and one for y:

 

altenbach_0-1672335859797.png

 

0 Kudos
Message 3 of 4
(1,218 Views)

Wonderful!  Thank you

0 Kudos
Message 4 of 4
(1,213 Views)