LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

linking property nodes to two cursors in one graph

Solved!
Go to solution

Hello,

 

I have got one graph with 2 cursors. And I need to by able to set the coordinates of each cursor by using property nodes. However, if I click right button mouse button - create - property node - cursor - cursor position - -then there are only 3 possibilities "All elements", "X", Y" which links only to one of the cursors (actually I don`t know which). How is possible to link 2 cursors`s position property nodes to 2 cursors in one graph?

 

 Thank you a lot for discussion.

 

Martin Pekar

0 Kudos
Message 1 of 4
(5,022 Views)
Solution
Accepted by topic author xombox@seznam.cz

Property nodes execute top to bottom. Resize the property node to four elements as follows:

 

and wire the two positions.

Message Edited by altenbach on 05-05-2009 10:38 PM
Message 2 of 4
(5,021 Views)

Hi xombox,

 

do as Altenbach said!

 

The "ActCrsr" stands for "ActiveCursor" - so you select the cursor to manipulate. The same scheme applies to other things (like plots) too - first you select the "active" one, then you manipulate it...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(4,999 Views)

Also, if you have more than a few cursors, you can make the code more scalable by using an array of positions and a FOR loop as follows.

 

 

Now the code automatically adapts th the number of cursors you actually have.

 

(Of course all other common sense applies, for example only set this when the position changes. Don't write the same cursor postions with every iteration of the loop over and over. ;))

Message Edited by altenbach on 05-06-2009 06:25 AM
0 Kudos
Message 4 of 4
(4,983 Views)