Overview
This VI Password Protected Tab Control with a Login
Description
Some applications require protected controls/tab controls with a Login. This can be done by setting the property of the specific tab that must be protected. The tab control has a property named Pages that provides an array of references to each tab. From the array, the appropriate tab reference is indexed and the property for PageEnb is set. There are three options for the property:
- Page Enabled
- Page Disabled
- Page Disabled & Grayed
In this VI, when the Enter button is pressed, the value from the password string control is compared to the password and if it matches, the tab is enabled.
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
- Run the VI
- Insert Password
- Press Enter and see if the Passport Protected Tab is Enabled
- Note: You can change the Password in the block diagram
Additional Information or References
VI Block Diagram

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