LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing an entire array into a for loop multiple times

Hey guys,
So I have a 1D array that I want to pass into a for loop. I want all values of the array to enter the loop on each iteration. However, as soon as I send the array in, it automatically auto indexes and sends one value at a time.
What's the fix to this?
I have looked at a few previous threads but most were asking how to send individual values instead.
Ideally, I am trying to send a 1D array in that multiples all its values with the cosine of an angle. I am using the for loop to update the angle on each iteration, but I want the 1D array to stay the same and enter the loop as a whole (as opposed to one value at a time) on each iteration.
Any help/guidance would be great.
Thanks 🙂

0 Kudos
Message 1 of 5
(2,488 Views)

Right-click the tunnel and disable autoindexing.

 

(Instead of lengthy descriptions, show us the code instead. There might be other issues)

Message 2 of 5
(2,483 Views)

Thanks. 
I just figured it out a few seconds ago too.

0 Kudos
Message 3 of 5
(2,480 Views)

Again, from your description is it not even clear why you would need a FOR loop at all. Can't you just multiply the array with the scalar angle?

0 Kudos
Message 4 of 5
(2,476 Views)

Trying to multiply the same array with various angles to see if there is any advantage.

0 Kudos
Message 5 of 5
(2,474 Views)