LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cursor Legend Tab Control BUG

Attached is a VI illustrating a bug with the Cursor Legend when graphs are in tab controls. If you enter in a number in the "Cursor X position to move to", then switch pages on the tab control, you'll notice the cursor has moved to the appropriate place, BUT the cursor legend has not changed to reflect that. Once you manually move it, it updates.
In short, if the cursor position changes programmatically, the cursor legend will update ONLY IF THE XY GRAPH IS VISIBLE, even though the cursor position DOES change.  
I hope someone from NI will see this post and add it to the bug list (if not already there??). If anyone knows a work around, that would be appreciated also.
 
Michael
Using LV 8.2
0 Kudos
Message 1 of 6
(3,811 Views)
I can reproduce this and have repoted it in the current bug thread:
 
 
 
0 Kudos
Message 2 of 6
(3,786 Views)

Hi miguelc

 

A nice workaround would be to add a tab value change event to the existing cursor value change event.  This will force an update to the other graph when it needs it.  After you make this change it works as expected!

Chris Co

0 Kudos
Message 3 of 6
(3,771 Views)
Good idea. It doesn't work exactlly, but gave me the idea for how to work around. It appears even if you have a tab value change event doing the same thing the Cursor X Position numeric indicator value change event, the cursor legend X value will not change. You can even try entering the same value in the indicator and pressing return after switching tabs, the cursor legend will not update. It thinks for some reason it is on the correct index. I made a Tab Value change event that first moves the cursor to the next index, then moves the cursor back to the correct index. Ugly but works. Hopefully in the next ver of LV they will have fixed a lot of these cursor bugs; there is definitely some work to be done (i.e. fixing cursor X position for XY graphs, an extremelly annoying bug)
 
Michael

Message Edited by miguelc on 02-23-2007 03:49 PM

Message Edited by miguelc on 02-23-2007 03:50 PM

0 Kudos
Message 4 of 6
(3,765 Views)

In my test, I forgot to mention I also changed the cursor logic from index values to position values.  I also changed the array incoming to increment every .25 for the Y values and left the X as you had it.  It works like a dream.  Your X values are such that 1.5,2.5,3.5,etc which may give unexpected results as far as trying to coerse to an even integar due to the rounding rules.  Try the fix on real values and I am sure it will work.

If I was vague, Ill post it tomorrow if I get a chance.

 

Chris Co.

BTW. I do not feel that this is a bug since the point of a tab is to save on redraws and panel space.  The bug it would seem to me is the fact that the cursor changed position at all without a redraw.

0 Kudos
Message 5 of 6
(3,752 Views)
Hi all,
This was reported to R&D (# 46MDMKVB) for further investigation. You've already found a workaround for the problem, and that is included in the report to R & D as well.  Thanks for the feedback, and keep letting us know if you run into any other issues!
Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 6 of 6
(3,720 Views)