LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the XY Positions of Cursors from Intensity Graph

Solved!
Go to solution

Hey all,

 

I have an application that outputs an intensity graph. I have two cursors on the graph that I use to make a box around parts of it to "zoom in". Right now, I have to manually type in the X and Y positions of both cursors into numeric control boxes in order to utilize them on the back panel. Is there any way to utilize the numbers without going through typing them into numeric controls each time?

 

Thanks,

LANL13

0 Kudos
Message 1 of 5
(2,613 Views)

Update: I realized that I can use property nodes to get the X and Y positions of a cursor. However, how do I pick if the node corresponds to Cursor 0 or Cursor 1? Right now they just automatically go to Cursor 1.

0 Kudos
Message 2 of 5
(2,608 Views)
Solution
Accepted by topic author LANL13

You almost have it, just use the ActCrsr property to set the Active Cursor before reading the values.  Property nodes operate sequentially from top to bottom so Write the value to ActCrsr on the top, then pull down and add the Cursor Postion properties.

 

Standard workflow you will get used to when using properties with graphs.  Set active cursor/plot then read/write properties of interest, often this is done in a For Loop.

Message 3 of 5
(2,598 Views)

I don't quite get how to utilize ActCrsr. Could you expand a little?

0 Kudos
Message 4 of 5
(2,596 Views)

Nevermind. I got it. Thanks!

0 Kudos
Message 5 of 5
(2,588 Views)