LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you create tabs on the front panel

I want to create folder tabs on my front panel such that when a particular tab is selected all controls and indicators associated with a piece of equipment are displayed and active on the screen. How is this accomplished?

thanks,
0 Kudos
Message 1 of 8
(20,448 Views)
From the Controls palette go to Containers>>Tab.

Lynn
Message 2 of 8
(20,436 Views)
Hi

Just place a tab on your front-panel (palette >> containers). Now you can create controls on you tab-pages and it already works as you want.
To add a new page, right click an existing page and select "Add page before" or "Add page after".

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 3 of 8
(20,433 Views)
Containers>>Tab
Create your Tab control.
By right clicking on the Tab control you can add, delete, swap pages...
Place the other controls and indicators on the various pages.
Then on the block diagram wire the Tab control to the selector of a case statement.
Create a case for each Tab and create the necessary code for each Tab selection.

In LabVIEW 7.X click on help, NI Example Finder, Click on the Search Tab, Type in the Keyword "Tab", and you will find examples of how to use a tab control.

Chad
Message 4 of 8
(20,426 Views)
thankyou very much
0 Kudos
Message 5 of 8
(20,395 Views)
follow-up

is it possible to have some of the same controls on several tabs? If so, how is this accomplished? The only solution I have is creating unique controls for each tab and setting up the code to perform the same function on the controls. (multiple copies of the same code acting on these controls).

thanks
0 Kudos
Message 6 of 8
(20,379 Views)
2 options - either have the controls outside of the tab, where they will be visible all the time (if you don't want them to be seen all the time, use the tab value to determine what their visible property should be) or move them out of the tab and then use the arrow keys to move them back. This way they will be "hovering over the tab", which will be indicated by a black frame around the controls. This frame will disappear when you run the VI.

___________________
Try to take over the world!
0 Kudos
Message 7 of 8
(20,374 Views)
Do these controls need to be visible to the user from the other Tabs or do you just need to get the value of the control when executing the code for the tab?

If you just need to the value of the control, there are two solutions.
1. If you code is executing in a while loop evaluating the Tab control and the executing the correct case statement, then place the controls that are needed by multiple tabs on the outside of the case structure and wire the controls into the case structure.

2. Create a local variable for the control. To create a local variable, right click on the controls terminal on the block diagram and select "create", "local variable". When the local variable is called it will obtain the value of corresponding front panel control at that time.


If these controls need to be visible in different tabs, then you may want to not place them on a tab page. Design your front panel such that the controls used on multiple tabs are not placed in the tab control.

Chad
0 Kudos
Message 8 of 8
(20,372 Views)