LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I highlight the default data in a numeric control when a VI loads.

I have a VI that features a string constant that asks for a numeric response via a numeric control, a "next" button that enters the data (controlled by the enter key), and two leds, one that lights if the data entered is correct, and one that lights if the data entered is incorrect.  Is there anyway that I can make sure that when this VI loads, the zero in the numeric control is highlighted?
 
Currently the opeator must use the mouse to highlight the zero in the numeric control, type the number and press enter ("next") to advance in the program.  I want the operator to be able to simply type the number after the VI loads and press enter.  This would require the zero to be highlighted when the VI loads.
 
Is there anyway that I can format the numeric control to do this?
0 Kudos
Message 1 of 2
(1,978 Views)
If you set the key focus of the control to true (Right click on control->Create->Property Node, then on the property node, select "Key Focus") before anything else, it should be highlighted when you run the program.
Message 2 of 2
(1,974 Views)