11-14-2008 08:45 AM
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?
Solved! Go to Solution.
11-14-2008 09:08 AM - edited 11-14-2008 09:08 AM
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
11-14-2008 09:32 AM
Hi Jim,
That's great.
Thanks
Millz
11-14-2008 09:33 AM