LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub Panel and Tab Bug

I've run across an interesting bug. The picture below shows a VI running in a sub panel that has a tab control. The tab control in the sub panel vi is set to change the value (tab) to page 2. The controls of page 2 show in the tab, but the tab indicator indicates that it is page 1. If this vi is run outside of a sub panel, it works correctly. Showing Page Label Display shows the correct value.

 

Sub Panel and Tab Bug.png

 

Created and tested in LabVIEW 2009. I have not tested in other versions.

 

Download All
0 Kudos
Message 1 of 4
(3,042 Views)

If you insert the VI in the subpanel then run it, it works just fine.

0 Kudos
Message 2 of 4
(3,031 Views)

How do you insert a VI into the subpanel before executing? I'm not sure how this would help me though. I use subpanels for the express purpose of dynamically change the VI.

0 Kudos
Message 3 of 4
(3,005 Views)

Swap the insert VI node with the Run VI node so that Insert VI comes first on the error wire, then the run VI.

0 Kudos
Message 4 of 4
(2,991 Views)