LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to bind a numberkey to certain front panel button?

Solved!
Go to solution

Hi,

I know how to bind certain actions like move left, up, down, move right to buttons. But what if I want to

bind numeric key "1" to a button... is it possible?

 

 

Thanks all, in advance!

0 Kudos
Message 1 of 5
(3,019 Views)

Hi JLuna,

 

use the event structure to detect keypress events.

In the event case check for the key "1" to trigger your "button" event…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,010 Views)

Do you have an example I could follow?? Because I currently use the "Key Binding Property" but only certain

keys can be used; F1, F2, Return, arrow up, down, left, right among others. But numeric keys are not included in these properties...

 

Thanks!!

0 Kudos
Message 3 of 5
(3,005 Views)
Solution
Accepted by topic author JLuna

Hi JLuna,

 

use the event structure to capture key press events:

check.png

German LabVIEW: "Taste gedrückt" = key pressed, "Zeichen" = char, "VTaste" = VKey

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,996 Views)

Vielen Dank!

Ich spreche nur bisschen Deutsche.

 

Many thanks for the example! I also found out this example;

http://digital.ni.com/public.nsf/allkb/D295B048D1B6E0D3862571EA005FBDE4

 

But yours seems to be a bit easier 🙂

 

0 Kudos
Message 5 of 5
(2,991 Views)