Example Code

Reinitialize Values to Default When Controls are Within a Tab Control

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

This example is a subVI that can be used to reinitalize controls that are contained within a Tab Control. 

 

Description

To run this, simply place the VI on your block diagram.  It will reinitialize all controls on the front panel, including those within the tab control.
 
Requirements
LabVIEW 2012 (or Compatible)

 

Steps to Implement or Execute Code

  1. Insert this vi as subvi
  2. Run the Main Vi

 

Main VI Snippet:

 

reinitalize_w_tab_BD.png

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

 

Regards,
Jim Schwartz

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

Comments
RogersDC
Member
Member
on

Thanks for posting this.  I haven't tried it yet, but I expect it will save me a lot time.

Nicholas_Herrick
Member
Member
on

Very handy little VI. The only changes I made were closing the references (one in the innermost for loop, and one for the VI reference) and making the reference control terminal required. Thanks a lot!