LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

for loop and array

Solved!
Go to solution

Capture.PNGCapture.PNG                 Capture.PNG

 

Can someone explain me how the appended array1(1X2) is becoming appended array 2 (4X2); I didnt figure out how indexing works here.

Thank you

 

0 Kudos
Message 1 of 4
(2,251 Views)
Solution
Accepted by topic author Venki_5s

Hi Venki,

 

at the output tunnel each 1×2 1D-Array will go to a ROW of the 2D array. As you notice: the latest values of array 1 form the last row of the 2D array...

 

That's how autoindexing works: scalars form an 1D array, 1D vectors become rows of a 2D array, 2D array becomes pages of a 3D array, and so on... And vice versa for an input tunnel!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,244 Views)

0 Kudos
Message 3 of 4
(2,234 Views)

Hi Venki,

 

I forgot to mention:

It's much easier to see how indexing works when you would display the elements of the 1D array horizontally instead of vertically as you do by now...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,202 Views)