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
(3,366 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
(3,363 Views)

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

 

 

0 Kudos
Message 3 of 14
(3,361 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
(3,356 Views)

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

 

I strogly recommend you read this (http://zone.ni.com/reference/en-XX/help/371361D-01/lvhowto/caveatsrecmndtnsevnts/) if you plan on using anything more complex than this.

Message 5 of 14
(3,336 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
(3,300 Views)

Saved for version 10

0 Kudos
Message 7 of 14
(3,296 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
(3,292 Views)

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

0 Kudos
Message 9 of 14
(3,290 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
(3,285 Views)