LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to access array controls by keyboard?

It's possible to switch through different controls on a
frontpanel by using the TAB key. Is it also possible to access
the index or value of an array control by keyboard?

Best regards,
Gerd Wieczorek
0 Kudos
Message 1 of 8
(3,166 Views)
Hi Gerd,

you have to use the property IndexVals to set the index of element displayed in the top left corner of the array.
I attach a simple example with a 1D array and 2 up-down buttons.

Good luck,

Alberto
0 Kudos
Message 2 of 8
(3,166 Views)
Hello Alberto,

the problem is somewhat different:
You can jump with the TAB key from one control to the next. If the control is a single element (like all the
numbers, booleans or strings) you can immediately change their value. If the control is an array, you cannot change the value nor the index. You have to select one of them WITH the mouse, to select and change them. And that's the problem!
I can change all values on a front panel only using the keyboard, but when encountering an array I have to use the mouse...
No way out?

Gerd
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 8
(3,166 Views)
Hi again,

I modified my example.
First you have to set the focus on array elements (press F3), then you can use TAB and Shift+TAB to move focus on elements.
I know this not as straigth-forward as tabbing through digital controls, but it lets you modify array elements without using the mouse.

Good luck,

Alberto
0 Kudos
Message 4 of 8
(3,166 Views)
> You have to select one of them WITH the mouse, to select and change
> them. And that's the problem!
> I can change all values on a front panel only using the keyboard, but
> when encountering an array I have to use the mouse...
> No way out?
>

Actually, you can do this with the keyboard too. When tabbing or
shift-tabbing through a panel, clusters, arrays, and other aggregations
of controls are themself selected. When they are selected, press
Ctl-Down Arrow to go into the cluster/array, then tab to move through
the elements. At any time, press Ctl-Up Arrow to leave it. The array
moves through each element, then to each index, then cycles back to the
elements.

Greg McKaskle
0 Kudos
Message 5 of 8
(3,166 Views)
Fine!
I did not know this trick, the easiest solution is often just around the corner!
0 Kudos
Message 6 of 8
(3,166 Views)
Just to check on this issue:

  Has an easy solution been created for tabbing into and out of a cluster yet???

 I want to be able to tab from FP element 1 -> 2 -> 3 ( a cluster) ->  cluster element 1-> 2 ->3  -> FP elemnt 4 -> 5 etc all by pressing tab.

  I am using 8.2  (but could upgrade to 8.5 if need be)


Thanks,  Kevin
0 Kudos
Message 7 of 8
(2,798 Views)
Hi Kevin,
 
You cannot still be able to achieve it due to the limitations in LV (8.5) itself. Smiley Sad
 
See the attached screenshots. Smiley Happy
 
You can navigate to the controls/indicators inside a Tab, but not a Cluster.
- Partha ( CLD until Oct 2024 🙂 )
Download All
0 Kudos
Message 8 of 8
(2,784 Views)