LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to pick a point in a graph and drag/move it to another position using the mouse?

I have an array which contains sample points.

I would like to be able to pick exactly one of those points in the graph (using the mouse) and move it to another position.

Thanks
Thomas
0 Kudos
Message 1 of 6
(3,493 Views)
You can do this to a graph cursor. These look like points. You can programatically change the data in the graph, so what you want to do is possible, but it will take a little bit of coding.
Message 2 of 6
(3,493 Views)
Thanks!

I didnt realize that it is possible to have more than one cursor!
This means I need to generate as many cursors as points in my array and just make it look like an ordinary point.
Then I can use this cursor to move the point to any position within the graph.
I hope my guess is correct!

Thanks again for your help
Thomas
0 Kudos
Message 3 of 6
(3,493 Views)
Hi,

It's better to make just one cursor (in case you have an array of let say
200 points), and make it snap to the nearest point. With the event structure
you can read out if the user has clicked in the graph, read out the cursor,
and when the mouse button is released, change the point to the new location.

Regards,

Wiebe.


"MrWaves" wrote in message
news:506500000005000000F2460100-1068850981000@exchange.ni.com...
> Thanks!
>
> I didnt realize that it is possible to have more than one cursor!
> This means I need to generate as many cursors as points in my array
> and just make it look like an ordinary point.
> Then I can use this cursor to move the point to any position within
> the graph.
> I hope my guess is correct!
>
> Thanks
again for your help
> Thomas
0 Kudos
Message 5 of 6
(3,493 Views)
Thats probably better since the array size is about 500 and more.

Thank you 😉
Thomas
0 Kudos
Message 6 of 6
(3,493 Views)