01-13-2021 12:09 PM
i2d=[]
img=[]
for j in range(0,129600,360):
i2d=[]
for i in range(j,360+j):
i2d.append(data[0][i])
img.append(i2d)
Solved! Go to Solution.
01-13-2021 12:14 PM
You can easily put a loop inside of a loop. You could probably do all of the appending of arrays by simply using autoindexing terminals.
01-13-2021 12:45 PM
there is a 1Darray of length 129600 and I want to create a 2D array of 360x360 out of it
I'm new to Labview and confused to do it
i2d=[]
img=[]
for j in range(0,129600,360):
i2d=[]
for i in range(j,360+j):
i2d.append(data[i])
img.append(i2d)
01-13-2021 12:48 PM - edited 01-13-2021 12:59 PM
I tried but was not able to do so can you provide screenshots
I'm confused how to append to array that RED BOX
means I am unable to change default array ([0]) with appended array
I'm new to this
01-13-2021 01:03 PM
Something like this?
01-13-2021 01:57 PM - edited 01-13-2021 01:58 PM
Just wire from one tunnel to the next. It will go from a 1D array to a 2D array.