LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need help in tab control

Hi

 

I have tow VIs , I want to put them in tab control , the first Vi in the page one and the second in the Page 2 to run sparat , should I copy and paste the code of Vi on the page ?

how can I use tab control

 

0 Kudos
Message 1 of 9
(2,920 Views)
A tab control is a front panel structure, typically used cosmetically to group and simplify elements of the ui. The way VIs run is decided in the diagram. Can you clarify what you actually mean?
0 Kudos
Message 2 of 9
(2,913 Views)

Subpanels.

 

http://digital.ni.com/public.nsf/allkb/D587067E18E0E70186256D44007B91FE

http://zone.ni.com/reference/en-XX/help/371361E-01/lvhowto/loading_panel_in_subpanel/

...

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 9
(2,897 Views)

I was initially thinking subpanels too, but then you would definitely not "copy and paste" code.... The question makes no sense. 😉

0 Kudos
Message 4 of 9
(2,888 Views)

I am sorry if I could dont be clear

 

the subpanel diffrent than the tap control ,

 

the why I want to use tap control ? I have two diffrent tests (with the diffrent VIs) for the same sample , I want to run the first test when I press page 1 on the tap control and then I run the second test when I press page 2 on the same tab control .

0 Kudos
Message 5 of 9
(2,853 Views)

It would be much more clear if you could attach your VI.

0 Kudos
Message 6 of 9
(2,849 Views)

I hope I will be clear now

0 Kudos
Message 7 of 9
(2,845 Views)

This is really horrible, but here's the basic idea.  Put the code for each test inside the Case Structure in the Event Structure handling the Value Change event.  If you're planning to write a State Machine you can have this event send the execution to a particular state.

 

Tab%20Control[1]_BD.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 8 of 9
(2,840 Views)

VIs dont go on tab controls.

 

You would place regular controls and indicators that get wired to the subVIs on the diagram. You can use a case structure wired to the tab control terminal to change which subVI gets executed.

0 Kudos
Message 9 of 9
(2,837 Views)