LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I Get the value from a mouse click - on a waveform graph?

If I have made a plot into a Waveform Graph and later want to do a zoom of my data
(Not zoom into the Waveform Graph, but regenerate the data). How do I read the mouse
coordinate if I click on the graph window. I know how to put up the horiz and vert
cursors but don't know how to just read the mouse click. I would really like to
follow the windows standard that identifys a rectangle by clicking and draging and then
be able to read the corners of the rectangle. Thanks, Rick
PS: Using Labview 6i
0 Kudos
Message 1 of 2
(2,707 Views)
I would recommend to 'translate' your graph in a picture and dislay it in a picture control (see picture examples in LV6).
Once you did it, pictures have an extremely useful property called Mouse that returns the mouse coordinates and click events when you place the cursor on the picture.
By this you can re-arrange the graph on picture appearance.

There are also other methods such as using a Window's API that returns the mouse position referred to the whole screen window, but I believe this would be much more difficult to implement.

Let me know if this was clear and if you need an example vi.

Good luck,

Alberto
0 Kudos
Message 2 of 2
(2,707 Views)