LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

requesting username and password open

Hi I want to request user name and password when opening a VI but I need to use a SubVI or one is only possible to achieve. Thanks.

0 Kudos
Message 1 of 6
(3,357 Views)

Try searching the forums.  Questions like that have been asked numerous times before.

0 Kudos
Message 2 of 6
(3,338 Views)

DanyckV
In the following KB you will find how to protect your source code

Locking and Password Protecting a LabVIEW VI

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P6wWSAS&l=en-US





 

 

0 Kudos
Message 3 of 6
(3,261 Views)

Your question is unclear because you didn't provide enough details.  Are you talking about a dialog that comes up in your software that asks for a user name and password?  If so the first rule about writing secure software, is to not wire it from scratch.  Use Windows security, DSC, or some other method if you can get away with it.

0 Kudos
Message 4 of 6
(3,243 Views)

HI, I want the program to run for a popup window requesting user ID and password to open the main program.Thanks.

0 Kudos
Message 5 of 6
(3,226 Views)

If this is the case then again I'd recommend you don't re-invent the wheel and use credentials already available.  My first recommendation is to use Windows.  You can query the logged in user, and what groups they are a member of and to enable parts of the code based on who is logged in.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PACwSAO&l=en-US

 

You can also use DSC which is a toolkit from NI.  It has several other features but user login is one of them.

 

https://www.ni.com/en-us/shop/product/labview-datalogging-and-supervisory-control-module.html

 

Other than that there are examples of making custom dialogs, like this one.

 

https://forums.ni.com/t5/Example-Code/Simple-LabVIEW-User-Log-In-Demo-Admin-and-Operator-User-Accoun...

Message 6 of 6
(3,213 Views)