LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling the order to update controls

I wish to insert in my project a vi containing string controls. That is supposed to read data using a PS2 scanner( parallel with keyboard)and close when last control was read. Can I find a way so , when vi starts execution, cursor to be on the firs control. Then , can I control the order they are filled? Now I have to position manually on the first field, and the next fields are updated in the order I created them.
0 Kudos
Message 1 of 4
(2,807 Views)
You can manually put the cursor in the first field by using the "Key Focus" attribute. Likewise, you can control the progression between controls using the "Set Tab Order..." selection under the Edit menu.

The attched VI is a simple example that when run selects the control "Number 3". If you hit the tab key the selection will cycle to "Number 1" and finally "Number 2". When you select "Number 2" the demo stops.

Hope this helps...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,807 Views)
> I wish to insert in my project a vi containing string controls. That
> is supposed to read data using a PS2 scanner( parallel with
> keyboard)and close when last control was read. Can I find a way so ,
> when vi starts execution, cursor to be on the firs control. Then , can
> I control the order they are filled? Now I have to position manually
> on the first field, and the next fields are updated in the order I
> created them.
>

I think you want to look at using the Key Focus Property. It is a
Boolean that you set to True to make that control gain the keyboard
focus. It sounds like you want to set it to True on one control, then
after so many keys go to that control, set it to another control, etc.

You may also want to set the strings to update
after each key is received.

Greg McKaskle
Message 3 of 4
(2,807 Views)
Also, use "Edit/Set Tabbing Order" to set the order of the
fields/controls/indicators on the front panel. You can also disable the
fields/controls/indicators from the Tab order by right clicking on the
fields/controls/indicators selecting Advanced/Key Navigation then select
"Skip this control when Tabbing".


"CBurlec" wrote in message
news:50650000000800000092400000-1012609683000@exchange.ni.com...
> I wish to insert in my project a vi containing string controls. That
> is supposed to read data using a PS2 scanner( parallel with
> keyboard)and close when last control was read. Can I find a way so ,
> when vi starts execution, cursor to be on the firs control. Then , can
> I control the order they are filled? Now I have to position manually
> on t
he first field, and the next fields are updated in the order I
> created them.
0 Kudos
Message 4 of 4
(2,807 Views)