LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I add a vertical cursor to a 2-plot xy graph?

I have a 2-plot xy graph, and I would like to add a vertical cursor that can be dragged to any x position, and have the 2 y values displayed.  How do I do this?
0 Kudos
Message 1 of 5
(4,597 Views)
If you want to interpolate between points, then you can use something like the attachment. If you only want to display y values that actually exist in the two separate arrays, you would use Cursor.Index, Index Array, and set the cursor to snap to plot.
0 Kudos
Message 2 of 5
(4,589 Views)
Thanks, Dennis.  I was hoping for something inherent, but this will work fine.
 
0 Kudos
Message 3 of 5
(4,587 Views)
OK, my problem is deeper than reading cursor position.  My cursor disappears when the VI is first run, never to appear again.  I have the X-axis set up for absolute time, and I think that might have something to do with it. 
0 Kudos
Message 4 of 5
(4,562 Views)

Brian

Get the minimum value of your X array and write that value into Cursor.PosX property node.

David

0 Kudos
Message 5 of 5
(4,555 Views)