09-09-2011 05:28 PM
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
09-09-2011 07:46 PM
09-10-2011 07:44 AM
09-10-2011 10:27 AM
I was initially thinking subpanels too, but then you would definitely not "copy and paste" code.... The question makes no sense. 😉
09-12-2011 11:26 AM
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 .
09-12-2011 11:41 AM
It would be much more clear if you could attach your VI.
09-12-2011 11:50 AM
I hope I will be clear now
09-12-2011 11:58 AM - edited 09-12-2011 11:59 AM
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.
09-12-2011 11:59 AM
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.