LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

key ENTER as OK button in password

Hi,

I have an application with several VI. Some of them are restricted and only it can executed if enter a password.
I've created a password VI, but I have a problem:

When the user finish to write the password I want that the key Enter acted as the OK button.

I've been looking for the web and I've found an example http://sine.ni.com/devzone/cda/epd/p/id/3988 , but I haven't achieved to solve the problem.


Vicen.
LV 7.1 / WinXP
0 Kudos
Message 1 of 7
(3,118 Views)
Rt-click on the OK button -->> Advanced -->> Key Navigation, now assign the Enter/Return to this button, thats all. Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 7
(3,116 Views)
Sorry. Attavhment got missed out. Smiley Sad
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 7
(3,113 Views)
Hi vicens,

use an event structure to check for "value change" of the string input - when the password given is ok you can automatically stop the while loop, no OK button needed.
You should rather include a CANCEL button, if someone accidently started the prohibited routine...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,107 Views)
Thank you


Download All
0 Kudos
Message 5 of 7
(3,070 Views)

Hi

 

In sub password vi it holds latest entered password in the password entered field.

how can we remove entered password/refresh(flush) the password entered field.

 

Thank you.

0 Kudos
Message 6 of 7
(2,800 Views)

hi

 

i got it.

 

 

Regards,

hari

0 Kudos
Message 7 of 7
(2,784 Views)