LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor: Bring to Center via Property node?

The pop-up menu on the Cursor Legend for graphs includes an item: Bring to Center which moves the active cursor to the center of the plot.

 

Is this capability available programmatically? An Invoke Node method or Property Node? I would like to have a button on the FP which "retrieves" a free cursor.  I can see complicated ways using Cursor Position and Scale: Range property nodes. I could not find anything as simple as the pop-up menu.

 

Lynn

0 Kudos
Message 1 of 10
(6,663 Views)

Lynn,

 


@johnsold wrote:

[...]I could not find anything as simple as the pop-up menu.



Neither do i. I recommend to create a suggestion out of this. It is really weird that those functions, which are obviously already encapsulated in the graph/cursor functionality, are not exposed to be called programmatically.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 10
(6,635 Views)

Thanks, Norbert.  I will wait a day or so to see if someone else has any hints.  If not, I will post to the Idea Exchange.

 

Lynn

0 Kudos
Message 3 of 10
(6,622 Views)

Lynn,

 

one note: i would expect this as invoke method rather than property. Makes more sense to me 😉

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 10
(6,616 Views)

I agree.

 

Lynn

0 Kudos
Message 5 of 10
(6,609 Views)

Posted to the Idea Exchange here.

 

Lynn

0 Kudos
Message 6 of 10
(6,578 Views)

Hey guys,

 

actually, this is doable.

 

Look Here

 

If you need to snap it to some data, then set the property too.

 

It works OK, but I used it and I remember it failed to work for extreme zoom levels 🙂 (nothing happened)

Do not remember if the inbuilt functionality failed aswell.

 

Edit: It did 🙂

Message 7 of 10
(6,573 Views)

Thanks for the link.  I knew it could be done that way but a direct Invoke node to match the pop up menu capability would still be nice.

 

Lynn

0 Kudos
Message 8 of 10
(6,565 Views)

@Bublina wrote:
[..]

It works OK, but I used it and I remember it failed to work for extreme zoom levels 🙂 (nothing happened)

Do not remember if the inbuilt functionality failed aswell.

 

Edit: It did 🙂


I take the Edit as "it fails as well". At least, it wouldn't surprise me if you meant it differently.

The reason:

Extreme zoom levels usually mean, that both endpoints of the scale do have a very small difference. Since the center is (at least in altenbach's code and i assume that the context menu function works similar) the average of both endpoint values, the difference between endpoint and average cannot be covered by the used numeric representation. So it computes an average, but that equals to one of the endpoints......

 

So this is rather a "works as expected" issue, even if not very nice and most likely considered a bug by the user (without above explanation).

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 9 of 10
(6,512 Views)

I think the "fail situation" caused the cursor jump to completely remote location.

 

I had a GPS data and I used the XY to display sort of a route, when the method (or setting the property) didnt work, it brought the cursor to a completely different location. There were still visible points on the XY graph. I solved it by implementing my own Zoom functionality to prevent user from zooming to levels where it didnt work. I did not investigate it any further.

 

I will try to reproduce this issue, once I get some free time.

0 Kudos
Message 10 of 10
(6,503 Views)