ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph, Intensity Graph: How can we set the mouse to be the curson position ?

I have a intensity chart of a histogram of energies. I currently have a curson running through it. Depending on the position of the cursor I display the corresponding features for that point. What I want to do is : If i click my mouse anywere on the graph, I want the cursor position to be shifted there. Or in other words, my mouse click brings the cursor there. Is this possible ?

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 2
(3,024 Views)
Sure it's possible. See the attached example. Note that the calculations for the horizontal and vertical coordinates are not quite symmetrical. The asymmetry happens because the mouse/panel coordinates have an upper-left (0,0) origin while the cursor coordinates have a lower-left (0,0) origin.
0 Kudos
Message 2 of 2
(3,012 Views)