10-04-2016 05:43 AM
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 🙂
10-04-2016 06:32 AM
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…