Example Code

Simple LabVIEW User Log-In Demo (Admin and Operator User Accounts)

Code and Documents

Attachment

Download All

Overview
This example VI produces two waveforms that are modulated together.

 


Description
The two waveforms can be viewed in the time or frequency domain. However, for security’s sake, if you wish to modify the waveform attributes, you need to “log in” to the application. Notice that, when you run the application, the waveform controls on the left hand side are disabled and greyed out.

Notes:

If you click the User Log In button, you will be greeted with the Log In dialog box. Notice that the dialog box is modal, and does not pause the waveform generation loop. The application currently supports x2 user accounts, each with different privileges. One is “Admin (password: Bond007)”, in this account you are able to modify all waveform attributes and front panel objects. the other is “Operator (password: 1234)”, in this account you are only able to interact with the “frequency controls” and the “reinitialize button”. If you fail to login correctly 4 times, the program automatically shuts down.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download and unzip the attached folder to your computer
  2. Open the project "User Log In 2012 NIVerified.lvlps"
  3. Open the VI "Main VI.vi"
  4. Run the program
  5. Log in account and change settings as you wish

 

Additional Information or References
VI Block Diagram of "Main VI.vi"

Block Diagram.PNG 

 

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

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/

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

Comments
WKAriyoshi
Member
Member
on

Hello. Could you please make a 8.5 version? Thank you very much!

HLUNA
Member
Member
on

bn

lehoangvn
Member
Member
on

Excuse me! I think this code is something wrong! Can you help me have accurate code?