LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning keys in labview 8.5

Solved!
Go to solution

I need to assign a letter key to a Boolean switch in LabVIEW 8.5. I've found the key navigation sub menu but don't want to use any of the keys listed. Can I assign any keyboard key and if so how?

0 Kudos
Message 1 of 4
(3,285 Views)
Solution
Accepted by topic author Millz

Hello Millz,

 

There are at least a couple of ways to handle this, but my favorite is to use an event structure.  Set up an event for "This VI"->"Key Up"  (Or "Key Down" depending on your preference).  On the left-hand node of the event structure, look for an integer called "Scan Code."  You'll have to experiment to figure out which scan code corresponds to the key you want to watch for.  Each key has its own unique scan code.  Then you can set up the event to execute the code that the Boolean handles.

 

I've attached some screenshots so you can see what I'm talking about.

 

I hope this helps...

 

Jim

Message Edited by Mr. Jim on 11-14-2008 09:08 AM
Download All
Message 2 of 4
(3,278 Views)

Hi Jim,

 

That's great.

 

Thanks

Millz

0 Kudos
Message 3 of 4
(3,254 Views)
Glad to help
0 Kudos
Message 4 of 4
(3,250 Views)