LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i stop the curser of an an XY graph from draging less than zero

what i am trying to do is stop the curser from dragging left beyond zero in the x direction.

tks.
0 Kudos
Message 1 of 12
(3,817 Views)
Right click on the graph > Advanced > uncheck "cursors scroll graph".
 
Now, if you wish to still be able to scroll in the other direction, that's another problem... Is that what you need ?
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 12
(3,813 Views)
what i need to do is to have the curser move both left and right but not let the curser drag beyond zero
0 Kudos
Message 3 of 12
(3,808 Views)
Unchecking "cursor scroll graph" still allow to drag the cursor, but you when you'll reach the graph side, the graph will not scroll. Unless you plan to present points with neagtive X's values, that the cursor should not reach, I think that's what you were looking for.
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 12
(3,800 Views)
i need the curser to drag the right side of the plot so that i can see more data
0 Kudos
Message 5 of 12
(3,796 Views)

Here is a solution in LV 8 : it uses the move cursor event node. When the cursor position is less than zero, it reset both the cursor position and the X axis minimum value to zero.

 

Chilly Charly    (aka CC)
0 Kudos
Message 6 of 12
(3,782 Views)
the thing is that i need to do this in 7.0 format
0 Kudos
Message 7 of 12
(3,771 Views)
I don't have LV at hand right now, but I believe that the cursor move event was not availaible in LV7. Therefore, you need to use the mouse move event, read the cursor position and if X<0 then set X cursor position to 0 and Xmin to zero.
Chilly Charly    (aka CC)
0 Kudos
Message 8 of 12
(3,769 Views)
tks i will try that
0 Kudos
Message 9 of 12
(3,767 Views)
that did not work because it then makes the x maximum number get closer and closer to zero
0 Kudos
Message 10 of 12
(3,762 Views)