LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of clusters TAB next element

I have an array of clusters and I want with the TAB key, when I am at the last element of the cluster i, move to the first element of the cluster i+1.

 

 

Jean-Marc

0 Kudos
Message 1 of 8
(4,355 Views)

I'm stuck with this VI, any idea to improve that?

 

Thanks

 

Jean-Marc

0 Kudos
Message 2 of 8
(4,292 Views)

If you want to save it as LV8.5, I'll try to take a look at it.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 3 of 8
(4,284 Views)

There was another question similar to this recently.  The suggestion then was to have a duplicate cluster control (not in an array) that the user updates.  When they press TAB, you could automatically update the array (use the event structure) and clear the cluster control for the next update.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 4 of 8
(4,282 Views)

Hi Jean-Marc,

here is a link for you https://www.ni.com/docs/en-US/bundle/labview/page/tabbing-through-elements-of-an-array-or-cluster.ht... 

Charly

It's always sunny in California! Certified LabVIEW Associate Developer!
0 Kudos
Message 5 of 8
(4,279 Views)

If the above suggestion doesn't work, try this:

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 6 of 8
(4,275 Views)
Thanks for they answers.

 

My problem is the triple TAB (TAB -TAB -TAB) to change the array line  i to i+1.  


Click on an element in the array and move with the TAB key.  When you  are at the element "VOC":
 

- the first TAB (event "<VOC>:Key Down?" ) generate CTRL +UP (return to tabbing among front panel controls -return to CLUSTER at line i);

- the second TAB (event "<Cluster>:Key Down?" - sequence through the array- move to the array line i to line i+1)

- the third TAB (event "<Cluster>:Key Down?" )generate CTRL + DOWN ( move the key focus inside the array or cluster -move inside the cluster at the line 1+1);

 

I try to reduce the number of TAB.

 

Jean-Marc

 

"Complete the following steps to use the <Tab> key to move through elements within a single array or cluster when you run a VI.

  1. Display the front panel. While the VI is running, press the <Tab> key until the array or cluster is highlighted.
  2. Press the <Ctrl> key and the down arrow key to move the key focus inside the array or cluster. (Mac OS) Press the <Command> key. (Linux) Press the <Alt> key.
  3. Press the <Tab> key to sequence through the array or cluster elements and the array indexes.
  4. To return to tabbing among front panel controls, press the <Ctrl> key and the up arrow key. (Mac OS) Press the <Command> key. (Linux) Press the <Alt> key."

0 Kudos
Message 7 of 8
(4,235 Views)

J-M,

 

Try experimenting with the key focus property node. 

Regards,

Jon S.
National Instruments
LabVIEW NXG Product Owner
Message 8 of 8
(4,196 Views)