LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
tst

Add a "Concatenate Indexing" option for arrays leaving loops

Status: Completed
Available in LabVIEW 2012

When an array leaves a loop with indexing enabled, you get an array which has one more dimension, but quite often you want to concatenate the data to an array with the same number of dimensions.

 

If the subarrays have the same length, you can use reshape array, but usually they don't and you need to do something like below.

 

It would be very useful if output tunnels for arrays had an "Enable Concatenate Indexing" option as well, as depicted below, which would do this.

 

 Concat Indexing.PNG

 


___________________
Try to take over the world!
24 Comments
WG-
Member
Member

Question, will this be implemented in while loops aswell?

tst
Knight of NI Knight of NI
Knight of NI

> Question, will this be implemented in while loops aswell?

 

I don't know the details, but I don't see why not. For loops can have some optimizations when auto-indexing out, but the basic mechanism is the same and in this case those optimizations probably can't be done anyway, since you can't always tell the final size of the array.


___________________
Try to take over the world!
G-Money
NI Employee (retired)
Status changed to: In Beta
 
G-Money
NI Employee (retired)
Status changed to: Completed
Available in LabVIEW 2012