ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to program keyboard to boolean?

Solved!
Go to solution

I would like to press any button on my keybaord and have that button turn on and off an LED. How can I do this?

 

Thanks

0 Kudos
Message 1 of 14
(4,363 Views)

Event structure key down event (triggered when pressed) or key up (triggered when released)

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 14
(4,360 Views)

Can I also do this with side arrow keys or letters?

 

 

0 Kudos
Message 3 of 14
(4,358 Views)

Also what blocks shall I use? I have my event structure and down arrow programed with a boolean placed inside. The only way i can get it to lite up is connecting a display block to the Boolean, but I don't want to do that.

 

Thanks

0 Kudos
Message 4 of 14
(4,353 Views)

Here is a simple event structure that should do what you want.

 

I strogly recommend you read this (https://www.ni.com/docs/en-US/bundle/labview/page/caveats-and-recommendations-when-using-events-in-l...) if you plan on using anything more complex than this.

Message 5 of 14
(4,333 Views)

I couldn't open your file I have version 10.0.1 is there another way you can post it or i can access it?

 

thanks

0 Kudos
Message 6 of 14
(4,297 Views)

Saved for version 10

0 Kudos
Message 7 of 14
(4,293 Views)

That's cool but how can I do this with a boolean led using leds to indicate which button has been press? I can't get the LEDS to talk to the case structure and thank you for your time btw

0 Kudos
Message 8 of 14
(4,289 Views)

So four LEDS to respond to it's own arrow key

0 Kudos
Message 9 of 14
(4,287 Views)

Also how can I add more options to the case structure. I can only choose true or false from my options

0 Kudos
Message 10 of 14
(4,282 Views)