LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor Label Position

Hi-

 

I am having an issue with cursor label position in an Intensity graph.

 

When I add cursors using the cursor legend, the label moves with the

cursor and is always at the same relative location to the cursor.

 

When I programatically change the number of cursors (by adding or

removing elements to the cursor list array), the moment the array has

changed all cursor labels disappear from the graph.

 

This behavior seems to be independent of the scale multiplier and offset

in a custom scale graph.

 

Any suggestions?

 

I am using LV2010 on a Windows 7 machine.

 

Dar Bahatt  

 

 

0 Kudos
Message 1 of 11
(4,367 Views)

Hi Dar,

When you manually add a cursor to your Cursor legend do the cursor labels also disappear, or they only disapper when you add cursors programmatically? Can you attach your VI to demonstrate this behaviour?

Mikhail
RF Toolkits, Product Support Engineer
National Instruments
0 Kudos
Message 2 of 11
(4,330 Views)
The labels disappear only when I add or remove cursors programmatically. Specifically,
I add or remove an element to the cursor list array.

I am traveling, so I'll post my code by the end
of the week.

0 Kudos
Message 3 of 11
(4,325 Views)

How are you adding cursors programmatically in your VI? When you add a cursor to the cursor legend of your intensity graph, do you simply wire the new cursor to the CrsrList Property node (this will erase all the cursors in the legend), or do you use Insert into Array function, as shown in the figure below?

 

Mikhail
RF Toolkits, Product Support Engineer
National Instruments
0 Kudos
Message 4 of 11
(4,304 Views)
Programmatically I do exactly what your image shows.

I have to correct my original e-mail. The cursor labels disappear only if the scale multiplier is not 1 and the scale offset is not 0.

When I add cursors to the graph by right clicking on the cursor legend and then move
the new cursor with the mouse the cursors
and cursor labels do not disappear.

Dar
0 Kudos
Message 5 of 11
(4,296 Views)

It might be a bug, but I will have to look at your code to confirm it.

Mikhail
RF Toolkits, Product Support Engineer
National Instruments
0 Kudos
Message 6 of 11
(4,278 Views)
I'll post my code in the next day or two.
0 Kudos
Message 7 of 11
(4,270 Views)

Hi Mikhail-

 

See attached vi.

 

1) Before you run it make sure that Cursor #0 is p[resent in the cursor legend and the graph.

 

2) When the VI is running add a cursor (#1) through the cursor legend, and move it around with the mouse

 

3) Then add a cursor (#2) pragmatically by pressing the add cursor button. You will see that the label does

    not show and if you move it you will see in the front panel indicator what the label offset is.

 

4) If you delete the last cursor from the cursor legend (right click and delete) you will see that the labels of the

    remaining cursors disappear.

 

5) You can also change the X and Y scales on the fly and see the behavior of the cursors.

 

Best,

Dar

 

0 Kudos
Message 8 of 11
(4,255 Views)

Hi Dar,

 

I ran your VI on LabVIEW 2010 SP1, Windows 7 (32-bit) and I was not able to get the cursor labels to disappear.

Here is the video with the results I have obtained. I even changed the X and Y offsets and scales, and I deleted cursors randomly from

the cursor legend array, and all the labels for all the cursors were still there with the exception of the deleted one.

I would suggest try running your VI on a different machine and see if you still run into this problem.

 

Bests,

Mikhail
RF Toolkits, Product Support Engineer
National Instruments
0 Kudos
Message 9 of 11
(4,214 Views)
Thanks Mikhail,

I am running on a 64bit machine...

I'll try running it on a different computer,
with 32bit Win7 and I'll keep you posted.

Best,
Dar
0 Kudos
Message 10 of 11
(4,210 Views)