Example Code

Make a Control or Indicator Visible on Some, But Not All, Tabs of a Tab Control

Code and Documents

Attachment

Overview
This VI demonstrates how one can place a floating terminal in the foreground of the front panel and then enable/disable the visibility of the control programmatically depending on the current tab.


Description
To use this VI, specify which tabs you would like the indicator to display on using the Show page button controls on the left.  The state of the indicator LED can be controlled using the LED on/off button control.  When the user moves between tabs, the LED indicator will appear or disappear according to the configuration of the Show page controls.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached file to your computer.
  2. Open the VI “Tab Control variable display example 2012 NIVeridied.vi”.
  3. Run the VI.
  4. Turn on 'LED on/off'.
  5. Click the 'Show page x' buttons and select each tab of 'Tab Control' in turn, and then observe the LED control in each page.

 

Additional Information or References
Front Panel

 Front Panel.PNG

VI Block Diagram

 Block Diagram.png

 

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

 

Tom L.

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