LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use an input from keyboard

This vi( refer to attachment) has to two ways to exit: 1 use the mouse and click the red-STOP button, 2 by pressing F4 on the keyboard.  My question is how does the second method works? doesn't the keyboard need to be initialize before use, but this vi does not have any keyboard function in its block diagram, how come?
0 Kudos
Message 1 of 4
(7,738 Views)


@locman wrote:
  My question is how does the second method works? doesn't the keyboard need to be initialize before use, but this vi does not have any keyboard function in its block diagram, how come?





You can assign a keyboard shortcut to a button. Select the button and go to its properties. It will have a field that assigns F4 to the button. This has the equivalent operation of clicking the button when you hit F4. Since it is applied to the stop button, it stops the loop.

By the way, you should probably post general LabVIEW questions in the LabVIEW general board rather than the LEGO board. You'll get faster response from more people.
Joel Sumner
NI-Shanghai
0 Kudos
Message 2 of 4
(7,727 Views)
Yes i do realized that i post on the wrong forum, but since we're here mind as well.  I checked the property of the button and the short-cut to assign F4 to the button was not available.  I'm attaching a printscreen of the property-window, so you see better of what i mean.
0 Kudos
Message 3 of 4
(7,705 Views)

Never mind i found it under advance>>key navigator.

thank you.

0 Kudos
Message 4 of 4
(7,704 Views)