LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front Panel: wire that follows mouse movement

Hello, I am trying to develop a function that draws a wire (or an arrow) that goes from coordinate point A to B, where A is the first mouse clic and B is the second mouse clic. If I understand right the line has two proprieties: position and size.

Problem is that the position is not the initial point of the arrow (A) but it changes depending on the position of the final point (B) because if B is on the left and A is on the right then Position Left gets smaller than before (I am manually changing the position and reading the value in order to understand the criteria).

I hope I was able to explain my problem, but I will be glad to upload the VI while I understand how to solve it. Meanwhile any help is welcome 🙂

0 Kudos
Message 1 of 2
(2,566 Views)

Hi cassaniti,

 

two suggestions:

- use a XY graph to display your line

- use a 2D picture indicator to display your line

Choose one of these options. Then all you need is an event structure capturing mouse move/click events on your indicators so you can calculate the start and end point of your line…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,543 Views)