From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to assgign keys to button (a..z)

Solved!
Go to solution

Hello,

i have three buttons on a panel.

I know how to assign F-keys to toggle them, but is it also possible to assign characters (a..z) to toggle?

 

Thx

0 Kudos
Message 1 of 5
(2,396 Views)
Solution
Accepted by topic author OnlyOne

You could do it with an Event Structure by using the Key Down event.  I'm not seeing a key binding for letters though.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,393 Views)

Hmm,

my vi is working fine with the Event-structure.

But now i call the Vi as Subvi which pops up and now the buttons are not working any more.

But i can still click on the buttons.

Window-appearance of sub-vi is set to "custom".

Is there something that i have to change in properties?

Thx

0 Kudos
Message 3 of 5
(2,360 Views)

@OnlyOne wrote:

Hmm,

my vi is working fine with the Event-structure.

But now i call the Vi as Subvi which pops up and now the buttons are not working any more.

But i can still click on the buttons.

Window-appearance of sub-vi is set to "custom".

Is there something that i have to change in properties?

Thx


Can you share some code?  Not much there is making sense unless there is a setting that is off that I can't think of at the top of my head.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 5
(2,354 Views)

It was any kind of other labview-hanging.

After restarting it works alo in my main-vi.

 

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