10-08-2015 10:34 AM
Hopefully this is trvial but I have a VI with an xy graph and an event structure in a loop. When an operator clicks on a sample I want to be able to determine which sample was clicked on? Does anyone know how to do this or have a good example? Thanks.
10-08-2015 10:38 AM - edited 10-08-2015 10:42 AM
You can use a mix of the Mouse Down event and a Map Coords to XY method to allow the user to select a data point with a click.
Theck out the last comment on this thread.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-08-2015 10:46 AM
I found a map coordinates to XY but want a snapped answer.
10-08-2015 10:56 AM - edited 10-08-2015 11:08 AM
If you create a Cursor, you can write the XY that is output directly tot he Cursor Position with a property node and the cursor will snap to the graph.
You can then use the cursor's info to pull the specific data point.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'