LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor's position in xy graphs

How do I get the X position of two X axis cursors on a XY graph so that I can do numerical calculations?

I am including a VI that will produce a graph initially. After I have the graph I want to use the cursor position to determine the time between the cursors.
0 Kudos
Message 1 of 2
(3,876 Views)
The problem with your property node is that you don't have the Active Cursor property. Before you read the x position, write to Active Cursor to select the cursor and then read the x position. In your case with two cursors, the sequence would be to select Active Cursor 0, read x, select Active Cursor 1, read x. You also should put some data flow between the while loop and the property node. Putting the property node on the right side of the diagram doesn't mean that it will execute after the while loop finishes. In fact, it won't.
0 Kudos
Message 2 of 2
(3,873 Views)