LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor moving

Hi all,

is there any possibility to avoid scrolling of a graph if a cursor ist
moved? I want the cursor only to be moved in a particular range.

Thanks,
Marko
0 Kudos
Message 1 of 5
(3,318 Views)
The only way is to write code that constantly monitors the location of the graphs cursor and uses property nodes to relocate them if the user tries to move them out of range. This same section of the code would also insure that the graph stays scrolled properly. Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(3,318 Views)
> is there any possibility to avoid scrolling of a graph if a cursor ist
> moved? I want the cursor only to be moved in a particular range.
>

You don't mention what version of LV you are using. In LV6.1, graphs
have options in the popup>>Advanced menu to control whether cursors
scroll the graph as they are dragged. If using earlier version, there
is a token you can place in the .ini file which will disable this for
all graphs.

Greg mcKaskle
Message 3 of 5
(3,318 Views)
Hi Greg,
just a comment: I would have much preferred if this option would also prevent the cursor to be placed beyond the scale ranges without programmatic limiting the cursor position.
By the way, what is this token?
Thanks,
Alberto
0 Kudos
Message 4 of 5
(3,318 Views)
> By the way, what is this token?

Sorry if multiple emails show up, I've been having problems with my news
reader not sending messages.

The token is scrollGraphCursors. Set it to FALSE if using an older
version. Your suggestion to keep the cursor inside the graph area is
valid, but not built-in. On the otherhand, the cursor has three modes,
locked, snap, and free. Locked cursors do not leave the plot they are
locked to. Snapped cursors can change plot, but they are always
snapping to some point on a plot. Except when zoomed into a plot, the
cursors will not leave the graph screen.

Greg McKaskle
0 Kudos
Message 5 of 5
(3,318 Views)