LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I restrict the movement of a grabbed cursor to the visible part of a graph?

Solved!
Go to solution

When I grab a cursor in a graph and come too close to the left or right boundary of the graph (in a x-direction movement), the displayed graph pans out to the right or left of the graph window. Is there a setting to suppress this or do I have to suppress it programmatically? And if so, how? Wouldn't I need a 'Cursor Move?' filter event.

 

-Franz

Message Edited by ahlers01 on 02-18-2009 03:57 PM
0 Kudos
Message 1 of 7
(3,341 Views)

Hi Franz,

I am not aware of such a filter event. As a workaround you can check the boundaries of the current plot and reset the cursors accordingly. I attached a small demo VI that serves this purpose. 

 

-Peter

--
Peter A.
Field Sales Engineer, NI Germany
Download All
0 Kudos
Message 2 of 7
(3,323 Views)
Solution
Accepted by topic author allaba

Is

 

Right-click >>> Advanced >>> Cursors Scroll Graph

 

un-checked?

 

Ben

 

 

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 7
(3,315 Views)

There is no code needed! 🙂

 

Right-click the graph...advanced... and uncheck "cursors scroll graph".

 

(edit: ahh... Ben's faster again :D)

Message Edited by altenbach on 02-19-2009 07:16 AM
Message 4 of 7
(3,314 Views)

Thanks guys,

I was not aware of this, either. 

-Peter

--
Peter A.
Field Sales Engineer, NI Germany
0 Kudos
Message 5 of 7
(3,310 Views)

altenbach wrote:

There is no code needed! 🙂

 

Right-click the graph...advanced... and uncheck "cursors scroll graph".

 

(edit: ahh... Ben's faster again :D)

Message Edited by altenbach on 02-19-2009 07:16 AM

 

Sorry Christian. Giving credit where it is due, I think it was you that taught me that trick.

 

[Insert tongue in cheek]

 

So judging by Peter's posting is looks like all of your (Christian) postings should be required reading for NI AEs. Smiley Surprised

 

What do you think? Smiley Tongue

 

[Remove tongue from cheek]

 

Ben

Message Edited by Ben on 02-19-2009 09:24 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(3,306 Views)

In addition (if I remember right), things are also a bit more complicated in ancient LabVIEW versions. If you use a very old version, it is possible to drag the cursor way outside the active window because the cursor keeps mouse focus even if the mouse wanders way past the graph area edge. If you release it outside, it might be difficult to get the cursor back. 😉 Some older LabVIEW versions need some extra code to prevent this from happening.

Message 7 of 7
(3,283 Views)