LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i get the x and y values when user double clicks the graph plot

Hi All...

 

I would like to know is there any solution for my problem.

I have an xy graph wth data points.I need to read the values of x and y coordinates when user double clicks on a data point on the plot.

Is there any way to achieve that?

0 Kudos
Message 1 of 9
(3,411 Views)
See the attached VI.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 9
(3,404 Views)

Pls send me again in 8.0

 

Am using lv 8.0

 

Thank u

0 Kudos
Message 3 of 9
(3,402 Views)

find the same vi in 8.0

 

Balaji

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 4 of 9
(3,391 Views)

Hi..

Thank you for the help.Actually i need to know the coordinates only when the user double clicks on the datapoints on the plot.

Any way for that?

 

Thank u

0 Kudos
Message 5 of 9
(3,378 Views)
Attach your VI with sample data saved as default values. We can help you further...
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 9
(3,374 Views)

user_1 wrote:

Hi..

Actually i need to know the coordinates only when the user double clicks on the datapoints on the plot.


I think this will be pretty much difficult to do directly using methods or properties.

 

But you can always look for the value of the plot at the double-clicked position & then take the X & Y coordinates of that point.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 9
(3,361 Views)

Hi,

 Ya its  having complications to show only when the user double clicks on the datapoints on the plot(as already partha told). See this attachment it may help you, it gives the actual data points value.

It is required to show only when the user double clicks on the datapoints then get the x,y coordinates and search in your data array with some offset because user will not accurately click the point. If u found the x,y values in your data points then display the values.

 

Balaji(CLAD)

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 8 of 9
(3,345 Views)
Balaji's VI in LV 8.0 format.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 9
(3,341 Views)