LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coordinates plotted with mouse click

Does anyone know how or know of any simple code that allows you to plot coordinates on a graph using a mouse click then connects the points. 

Im just a beginner and had a look already but cant see any code that is relevently easy to understand on hwo to do this

0 Kudos
Message 1 of 35
(3,994 Views)
Did you check Help>>Find Examples>>Draw Graph with events??
Thanks
uday
0 Kudos
Message 2 of 35
(3,981 Views)

Hi recneps,

 


you need just a mouse click event and a method of the graph:

Graph.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 35
(3,977 Views)

had a look at that but it doesnt really help. i saw a problem on here whcih ill link down below but i only want to let me to mouse click on the coordinates and connect them but nothing else. But im not sure on what needs to be taken out to do so.

Message 4 of 35
(3,970 Views)

Hi recneps,

 

then why do you use that inappropriate example VI instead of the much simpler mentioned above or my very simple example?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 35
(3,959 Views)
Hi recneps, I guess that's exactly what done in the NI example isn't it??
Or am i missing anything?
Thanks
uday
0 Kudos
Message 6 of 35
(3,957 Views)

sorry GerdW i typed up and put the comment on before i saw that you had even replied i was answering udka. 

0 Kudos
Message 7 of 35
(3,951 Views)

could you send me your VI for that example you made GerdW, im not sure where to find some of the parts of the code

0 Kudos
Message 8 of 35
(3,946 Views)

Hi recneps,

 

sorry, didn't save the VI...

 

Anyway: it's just a XYgraph, a method of that graph and an event structure configured to cath mouse clicks on that graph. (Well and a BuildArray and a shift register...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 35
(3,938 Views)
Can i know in what way the specified example doesn't meet your requirement??
Thanks
uday
0 Kudos
Message 10 of 35
(3,933 Views)