03-31-2012 09:47 PM
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
04-02-2012 07:04 PM
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?
04-02-2012 09:10 PM
04-03-2012 12:32 PM
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?
04-03-2012 07:08 PM
04-04-2012 08:56 PM
It might be a bug, but I will have to look at your code to confirm it.
04-05-2012 12:12 AM
04-06-2012 09:55 AM
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
04-09-2012 08:15 PM
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,
04-09-2012 08:33 PM