LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
johnsold

Graph: Bring Cursor to Center via Invoke Node

Status: New

The Cursor Legend pop up menu on graphs has an item: Bring Cursor to Center.  Very handy when the data changes and the previous cursor position is now 4000 screens to the right.

 

I suggest that an Invoke node be made available which provides this action.  This will allow use of a push button on the front panel to bring the cursor back with very simple code.   Obviously NI has already done all the work because the menu item exists.

 

This can be done with property nodes but it is rather complex to examine the scales, check the current position of the cursor, calculate the center, and set a new position.

 

I asked about other ways to do this in this thread.

 

Lynn

2 Comments
TechWiz
Member

I am using LV2016 and I don't see this idea implemented in it. Has this been included in LV18/19?

This would be quite useful as the author states.

 

wiebe@CARYA
Knight of NI

>I am using LV2016 and I don't see this idea implemented in it. Has this been included in LV18/19?

 

No. Still not there.

 

It doesn't seem that hard to make a VI that does this, though. Get cursor scale, get scale (min+max)/2, set cursor position. Not as convenient as a build in method of course.

 

EDIT: For a Graph or Chart it's not hard, but making one VI that accept a GraphChart class is some work, as not all classes in GraphCart class have cursors... So you have to "to more specific" a few times. *sigh*

Center Cursor.png