LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linking a point on a graph to another graph

I will have 5 total graphs. 4 will be Force vs. Velocity and the last will be the velocity at the Max force point of each graph and then a connecting line between the points. I want to know if there is a way to click one of the points on the Max graph that will link me to the F vs. V graph it came from?

Or will I have to use cursors to label them and just have labeled tabs at the top that the user can click? If this is the case, is there a way for LV to automatically put a cursor in at the Max point of each graph?

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

--- I'm not sure what you mean by "that will link me to the F vs. V graph it came from".

 

If you just mean to make a visual connection, then that should be easy.

 

If I understand you correctly, your fifth graph is Velocity vs. Graph Number.  You can have an EVENT when the user clicks (MOUSE DOWN) on the fifth graph.  There is an INVOKE NODE method called MAP COORDINATES TO XY, which will take the mouse coordinates (in the event data) and tell you the XY that is nearest.  The X value of that is the number (0..3) of the graph it came from.  You can then highlight that one in some way.

 

 is there a way for LV to automatically put a cursor in at the Max point of each graph?

I don't think it's "automatic" but you can pick out the max itself, and move a graph cursor to that spot.

 

Here's an example:

Capture.PNG

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 2
(2,132 Views)