LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab control shows wrong display for selected tab

My computer crashed when I tried to post this earlier, so I apologize if the first post actually shows up. 

 

I have seen this for years so it is nothing new, but I don't remember seeing it in any release notes (sorry if I missed it).

 

Upon loading the .vi (or as an executable), the .vi shows the wrong page for the selected tab.  After selecting a different tab, the control works fine.  Also, if you create a property node to read the tab value, it matches the displayed page....just the selected tab seems to be incorrect.

 

A work around is to select the default tab before saving the .vi, but why is this happening in the first place?

Message 1 of 5
(4,062 Views)

Hi labviewman,

 

It looks like the typedef that you are using with your tab control is what is causing this issue. I would guess that the last state is on the second tab, and that the tab shows this even though the content is from the first tab. Changing the typedef should fix this, or you could disconnect the tab from the typedef.

 

Regards,

Stephen S.

National Instruments
Applications Engineering
0 Kudos
Message 2 of 5
(4,025 Views)

Hi Stephen,

 

The erroneous tab display is something I see on most of not all of my code that uses a tab control (each is a typedef). 

 

What change would I make the the typedef?  If I disconnect the tab from the typedef then I will loose the advantages of using the typederf...I will stick with the workaround like I have for the past 3+ years.

 

Isn't this a LabVIEW bug since the displayed tab is not equal to the value read from the control?  I have not tried it on this example I posted but in the past, writing to the control does not fix the displayed tab (writing the control may not work since I wrote the same value that LabVIEW thinks is the current value, but the displayed!=actual).

 

Thanks,

 

Todd

0 Kudos
Message 3 of 5
(3,993 Views)

Hi Todd,

 

Your issue is currently under investigation by R&D.  For now, you can use the workaround you've been using.  We appreciate your feedback!

0 Kudos
Message 4 of 5
(3,967 Views)
I've seen similar problems in the past with tabs containing 3D graphs.
0 Kudos
Message 5 of 5
(3,955 Views)