LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically focusing an XY graph

I am working on a GPS application where I am plotting positions found in an
XY graph. I've come sofar that I can see my trail and a dot of my current
position. I've been trying to readjust the xy graph such that my current
position stays in the middle and zooming is still possible. I've tried with
several property nodes, but didn't get it to work. help files also mention
that most properties cannot be changed at run-time (what other time, then?).
I am considering determining to only display points found within a certain
distance of the current point and have it auto-scale, but that would take
(unnecesary?) computing power. Any other suggestions?
Thanks!

Aart-Jan
0 Kudos
Message 1 of 3
(2,744 Views)
What property nodes did you try to use? How did you use them? Properties such as Yscale.minimum/maximum and Xscale.minimum/maximum are certainly settable during run-time and should work as long as you're not also turning auto-scale on. Mabe you could post an example of the code you've written so someone can take a look at it?
0 Kudos
Message 2 of 3
(2,744 Views)
thanks, dennis, I just figured it all out. I started with an outdated example from the NI library (XY Graph with Variable-Time X-axis) that got me started on a better understanding of the range property. Actually quite simple. Just select the x/yscale.range.maximum and .minimum properties. Get the current position values and sutract a constant value for minimum and add for maximum of the range. Great! Makes zooming also a breeze. Thanks anyways for following up
Aart-Jan
0 Kudos
Message 3 of 3
(2,744 Views)