NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect first Enter keypress in reloaded VI

Solved!
Go to solution

Hi.

I'm using popup information VI's in TestStand which I want the user to be able to exit/confirm by using Enter/Return, and I'm using a Key Down event in an event structure to detect they keypress.

But the problem is that when the VI is already loaded in TestStand, the event structure doesn't detect the first Enter/Return keypress.  If I detect the spacebar, it works fine.  But Enter/Return always needs a first keypress before being detected as a Key Down event.

Anybody know why this is?

 

Best Regards,

Øystein.

0 Kudos
Message 1 of 3
(3,760 Views)
Solution
Accepted by topic author ojohnsen79

Do you have the Set to focus on toggle checked in the button properties.

 

See the attachment.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(3,754 Views)

Your suggestion worked like a charm.  Thanks! 🙂

 

Regards,

Øystein.

0 Kudos
Message 3 of 3
(3,697 Views)