Example Code

How to Show a Control on Multiple Tab Control Pages, and Hide it on Others

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
To hide the control when the tab is on certain pages with single control using the tab control container

Description:
This VI is an example to show you how to manipulate the certain behaviour of hiding the control when using the tab control container and it is activated when it is on certain pages

Instructions:
To implement this example:

  1. Run VI
  2. Choose Page 1 and Page 2, where the button will be shown
  3. Choose Page 3 and the button disappears
  4. On either Page 1 or 2, click the button and observe that it's indicator is being updated.  I solely included the indicator here to demonstrate that the values were actually being read, independent of which page is selected.
  5. Use the stop button to stop the program

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

bd.pngfp.PNG

**This document has been updated to meet the current required format for the NI Code Exchange.**

Paul Davidson
National Instruments
Product Owner - ni.com Chat

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.