LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Complex Arrow

Solved!
Go to solution

Hi Guys,

I got the following issue.. and it seems to be rare too (at least I didn't find any hint yet that works):

I want the user to enter a Complex Number by using graphical means (e.g. 2D Compass Plot, or XY-Graph). In end version the user is supposed to click on a Point in the Diagram. As the Program recognizes this, it fills in an Arrow/Vector pointing to that point and starts to analyze the entered data.

 

However I already got trouble to read the Data that I put into the Graph. So far I tried to convert the 2D Compass data into an "Every-day-Datatype" to progress further, but failed epicly there already.

In Detail I went from "D Compass=> Index Array==>get Variant Attribute==>Convert to string as well as various Variation of these.

 

My hunch is that I use "Get Variant Attribute" just wrong

Does anyone have a clue how to solve this mess?
What attributes does a Compass value have?

Greetings

Eagle Sword

 

PS: Attached you will find an Up to Date Picture of my latest Try to get the name of the attribute. Needless to say that it doesnt work so far. The structure resembles the other tries though.

0 Kudos
Message 1 of 4
(3,020 Views)
Solution
Accepted by topic author Eaglesword

Making the graph a control is pretty useless here, so leave it as an indicator.

 

I never use the fancy graphs, because they seem relatively limited.

 

Instead, use a plain XY graph and use mouse down events which gives you the pixel coordinates. You can easily convert between pixels and xy coordinates using invoke nodes.

 

I also recommend that you attach an actual VI instead of a picture. What is your LabVIEW version?

0 Kudos
Message 2 of 4
(2,989 Views)

Another option would be to use a picture indocator and draw the arrow similar to shown here. Or use the plot images overlay of the xy graph to draw the arrow.

0 Kudos
Message 3 of 4
(2,982 Views)

thanks for the hints guys i think i got it more or less now... the clue with the cursor and button down has been quiet usefull to me, now its all about getting the scale right, but i think that wont be to much of a challenge 🙂

I attached my VI as it is, for those who need 🙂
Eaglesword

0 Kudos
Message 4 of 4
(2,971 Views)