From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labeling points on XY graph with numbers. Trying to use cursor names.

I have found some example vis in the NI Developers Zone that label the points using Cursor Name attribute. I have some success, but results are not consistent. I need up to 100 labels...is there a limit to the number of cursors? Is there a way to initialize 100 cursors without using Cursor Legend? Sometimes the cursors do not appear or do not move...they don't seem to be consistent. Any other ideas to solve this problem? Would it be possible to show the number of the point when the cursor is moved to that point. I am using LabView 6.0. windows 2000.
Thanks.
Liz
0 Kudos
Message 1 of 4
(2,691 Views)
Problem: When trying to change cursor position programatically using attribute notes, the cursor position will not change.

I found this in the knowledgeBase. Solution: Unlock the cursor. Cursor position attributes are read-only when the cursor is locked. Liz
Still looking for answer of a way to initialize 100 cursors with Cursor legend.
0 Kudos
Message 2 of 4
(2,691 Views)
> Problem: When trying to change cursor position programatically using
> attribute notes, the cursor position will not change.
>
> I found this in the knowledgeBase. Solution: Unlock the cursor.
> Cursor position attributes are read-only when the cursor is locked.
> Liz
> Still looking for answer of a way to initialize 100 cursors with
> Cursor legend.
>

If you want to do things programmatically, like set the cursor text to
match the X or Y value of the point, read the value, format the string
and write it to the name of the cursor.

If you want to init 100 cursors interactively, you can popup on the edge
of the cursor legend and show the index. The cursor legend is simply an
array of clusters of cursor info. Set the index to 99 and type in a

name, value or something else. This will allocate 100 cursors. I'm not
sure if that is what you meant.

Greg McKaskle
0 Kudos
Message 3 of 4
(2,691 Views)
Thank you very much Greg. I wasn't aware of that.
Problem solved! Labeling the points on the XY Graph worked out very well.
Thanks. Liz
0 Kudos
Message 4 of 4
(2,691 Views)