LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I open a vi with a numeric control active?

Good Day,
 
I have a vi that opens on a certain event in which the operator needs to enter a new value for a certain parameter.  How do I make it so that when this vi opens, the operator doesn't have to select the numerical field before entering the number (ie, I want the control to be active, and the contents selected so that the operator can type over existing value).
 
As always, thanks for the help.
0 Kudos
Message 1 of 5
(2,845 Views)
It seems like you want to provide the user with a default value for the specified inputs.  Initializing an input to 0 would make it active.  To do this, just input an initial value in the input, highlight it, then edit > make values default.  Hopefully I was understanding your problem correctly.
0 Kudos
Message 2 of 5
(2,837 Views)
Create a property node for your numeric control (right click it and select Create >> Property Node). Then select the property called Key Focus. Right click the property node and select Change to Write. It accepts a boolean value. Wire a true to it.
Jarrod S.
National Instruments
0 Kudos
Message 3 of 5
(2,832 Views)

Yup, here's a screenshot of using the KeyFocus property.

-D

Message Edited by Darren on 08-15-2006 11:46 AM

0 Kudos
Message 4 of 5
(2,836 Views)
Very good.  Thank you all for the key responses.
0 Kudos
Message 5 of 5
(2,827 Views)