LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Active cursors position

Solved!
Go to solution

Hi everybody,

I am programming an application with many cursors on my XY graph. They are visible or not according to boolean buttons state programmed in event cases. I just need to get back the position of the visible cursors then transform them for an hardware stuff, but it seems that I don't use the right solution. I get back every cursors positions, even the invisible ones.  How can I make the difference between the visible and the other ones? I precise that I can't do it one by one because I have a lot of cursors that's why I use the cursorList as you can see on the relative image.
Any Idea ?

Best regards,
MartinO.

0 Kudos
Message 1 of 4
(2,745 Views)
Solution
Accepted by topic author MartinO.

The cursor list makes no distinction between visible/not visible. It will always return all cursors. If you just want the visible ones then you need to iterate through the cursors and read the Visible state. Something like this:

 

0 Kudos
Message 2 of 4
(2,731 Views)

thank you it works very well !
Perhaps you also know how to turn a visible cursor into invisible state with the property nodes ?

Best regards,
MartinO.

0 Kudos
Message 3 of 4
(2,706 Views)

Use that same Cursor.Visible property node and change it to a write. You just need to make sure you set the active cursor first, as shown in the snippet I posted.

0 Kudos
Message 4 of 4
(2,697 Views)