ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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?

メッセージ1/5
4,316件の閲覧回数

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 件の賞賛
メッセージ2/5
4,279件の閲覧回数

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 件の賞賛
メッセージ3/5
4,247件の閲覧回数

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 件の賞賛
メッセージ4/5
4,221件の閲覧回数
I've seen similar problems in the past with tabs containing 3D graphs.
0 件の賞賛
メッセージ5/5
4,209件の閲覧回数