LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
WG-

Inverse "Index Array" selection

I'm sure some of you know python. In python you can do things like array = [1, 2, 3]. If you want to select the last element, 3, of the array you can do array[3] but also array[-1]. array[3] = array[-1] = 3. I purpose to introduce this also in LabVIEW with the "Index Array" and proberbly some other array tools as well. Then finaly I see a good argument why the type of the index to select a element from the array in "Index Array" is of type I32.

 

ps. LabVIEW arrays go from 0 to n hence the 'inverse' selection would be n-1 to -1. Where -1 gives the last element and n-1 the first.

3 Comments
altenbach
Knight of NI

Looks like a duplicate of this idea.

WG-
Member
Member

@altenbach. True it's the same. This can be merged.

Laura F.
Active Participant