LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Key focus and enter key storing and erasing values?

Using keyfocus and enter key, if key pressed more than once, value is stored, how do I clear this value? We are using key focus on a sub-vi that is running, the enter key is pressed and the sub closes and the main regains focus. However, if the enter key is accidentaly pressed twice, the second value is stored and the next time a key focus for enter is present, it is executed, is there a way to clear this buffer?
0 Kudos
Message 1 of 2
(2,571 Views)
It may be profitable for you to post your code for us to look at.

It sounds like you have a boolean that is associated with the return key that is getting pushed an extra time while the sub-VIis exiting. If this is the case, you may have to set the boolean explicitly when the sub-VI starts.

There are other possibilies but I will not go into those with just a guess.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,571 Views)