LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear cursors from XY graph (in realtime)?

I'm using Labview 7.1 

I have an XY graph containing a plot with multiple peaks.  I'm tracking those peaks by feeding locations to each active cursor.  The user can control the number of peaks tracked, as a new cursor is created when the user increases the input number.  However, when the user lowers the number, the unneeded cursors remain on the graph at their last position.  I want to remove these "dead" cursors in realtime.  Is there any special "clear" function which can remove all markup from the graph?  Otherwise, I'm thinking I'll have to add some potentially messy conditional statements to make the unwanted cursors visible or invisible. 

thanks
0 Kudos
Message 1 of 2
(2,723 Views)
You could read the "cursor list" via a property node, then delete the aray elements you no longer need, and write the edited cursor list back to a property node. 🙂
Message 2 of 2
(2,720 Views)