LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

active cursor

I have a graph, with two cursors.  I want to be able to move either cursor around, and then use the position of the last cursor that got moved.  I want to shift the data that I'm plotting (in the x-direction) so that the data's new "zero" point is at the position of the last moved cursor.

i'm using version 7.0

Message Edited by gatordan82 on 06-18-2006 04:09 AM

0 Kudos
Message 1 of 4
(2,408 Views)
I'm not sure if you can do this "on the fly" since if you poll the cursors as they scroll, they'll constantly trigger changes (although you could probably stick a time delay in there to offset it).

When I use cursors to set graph ranges, I just use a "update graph" button and read the cursor positions to set the range.
LV7 example attached
0 Kudos
Message 2 of 4
(2,372 Views)
You could use a Mouse Up event to trigger the scale change.  It is availible in 7.1, but I don't have a copy of 7.0 I can check.  Of course, that would execute each time the mouse is released.
Message 3 of 4
(2,369 Views)
great idea - and it works too Smiley Very Happy

LV7 attached (i used locals just to make it easier to follow)
0 Kudos
Message 4 of 4
(2,362 Views)