LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic vi on tab control

Hello,

              I have a tab.vi which has a tabcontrol. The tab control has 3 tabs. Only tab1 is visible intially and the other two tab's are hidden. Now lets say we are in tab1 and user presses 'Add' button. Then tab2 becomes visible. If user presses again 'Add' Button then tab3 becomes visible. Now each tab has a subpanel. Each subpanel will be loaded a vi from template when the respective tab becomes visible. Now Lets say tab1 and tab2 are visible then subpanel1 and subpanel2 will have a vi derived from template vi.


Template vi has two integer input and calculates the sum of it and gives the output.

 

Now coming to the problem:

User enters the following data

Tab1: Subpanel1 : Tab1Input1=5 Tab1Input2=10

Tab2: Subpanel2 : Tab1Input1=23 Tab1Input2=2

now the Tab1output indicator should dispaly 15

and Tab2output indicator should display 25

 

I am having problem getting the vi reference and traversing objects.

 

“Talk is cheap. Show me the code.”
― Linus Torvalds
Download All
0 Kudos
Message 1 of 1
(2,252 Views)