Creating Tab Controls

LabVIEW 2017 Help

Edition Date: March 2017

Part Number: 371361P-01

»View Product Info
Download Help (Windows Only)

You can use tab controls to overlap front panel controls and indicators in a smaller area. A tab control consists of pages and tabs. Add front panel objects to the pages of the tab control and use the tab as the selector to display each page.

Complete the following steps to create a tab control.

  1. Add a tab control to the front panel window.

  2. To switch between pages, use the Operating tool to click the tab for the page you want. You also can switch between pages by right-clicking a tab and selecting Swap Pages or Go To Other Page from the shortcut menu.
  3. Add any front panel objects to the active page. A page is active when the tab for that page is flush with the page and the objects on the page are visible. Terminals for controls and indicators you add to the tab control appear as any other block diagram terminal.
Tip  When you add objects to a tab control page, frequently go to the block diagram window and arrange the newly added terminals. When you add several objects to a tab control, the terminals on the block diagram can become cluttered.

On the block diagram, the tab control is an enumerated control or indicator. As a control, you can pass the value of the active page to other block diagram nodes. As an indicator, you can wire nodes to control which page is displayed. You do not need to wire the tab control terminal for the tab control to operate.

Tip  You can wire the enumerated control terminal of the tab control to the selector of a Case structure to produce cleaner block diagrams. With this method, you associate each page of the tab control with a subdiagram in the Case structure. You add the control and indicator terminals from each page of the tab control—as well as the block diagram nodes and wires associated with those terminals—into the subdiagrams of the Case structure. If you need a component of a VI to run continuously, even when its controls are hidden, do not use a Case structure, because the structure executes only one case at a time.


Not Helpful