OK, here are a few comments to your program.
Front panel
First of all, the user interface is too complicated. You should pattern it according to standard password dialogs containing just a password field and a cancel button and not much else.
Since you allow closing the window with the [X] in the opper right corner, you don't need the "Abbrechen" button, just create an event for "panel close?" for this function.
Code
- Your loop has no wait statement and thus will spin millions of times per second consuming all CPU while not really doing anything except polling the controls.
- This will starve all other processes for resources and thus can hurt performance.
- Place a small wait (e.g. 100ms) in the loop or better yet, use an event structure. Place an indicator on the iteration terminal to see the difference! :)
- The two buttons have a very unusual mechanical action (Switch until released), which is meaningless in this context. Use e.g. a "latch when released" mechanical action, which sets them true until the new value is read by the code.
- Just reset the password field to blank when the loop ends.
Here's a quick draft that shows some of the possibilities.
Another possibility to clear the password field would be to assign it to an input connector and then wire an empty string when calling it.
Passwort13MOD.vi:
http://forums.ni.com/attachments/ni/170/292425/1/Passwort13MOD.vi